Skip to content

Commit 01b69e7

Browse files
committed
Test pages collection
1 parent 409f7d1 commit 01b69e7

3 files changed

Lines changed: 155 additions & 0 deletions

File tree

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ defaults:
5050
type: blog_categories
5151
values:
5252
layout: category
53+
- scope:
54+
type: test
55+
values:
56+
layout: default
5357
- scope:
5458
path: blog/page
5559
values:
@@ -59,6 +63,8 @@ collections:
5963
blog_categories:
6064
output: true
6165
permalink: /blog/category/:name/
66+
test:
67+
permalink: /test/:name/
6268

6369
details:
6470
location: Meanwood

_staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
url: https://staging.cmbuckley.co.uk
22
netlify_form: true
3+
collections:
4+
test:
5+
output: true

_test/styles.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
---
2+
title: Test
3+
---
4+
5+
# Heading One
6+
## Heading Two
7+
### Heading Three
8+
#### Heading Four
9+
##### Heading Five
10+
###### Heading Six
11+
12+
## Inline Elements
13+
14+
Some metadata
15+
{:.meta}
16+
17+
This is some text with **bold**, *italic* and ***bold italic*** text[^1]. It also has a [link](https://cmbuckley.co.uk).
18+
19+
There is also <ins>inserted text</ins> and <del>deleted text</del>. Search results get a <mark>highlight</mark> as well.
20+
21+
## Blockquote
22+
23+
> This is a blockquote
24+
25+
## Lists
26+
27+
### Ordered List
28+
29+
1. This
30+
2. is a
31+
3. numbered
32+
list
33+
5. containing
34+
- an
35+
- unordered
36+
- list
37+
6. and
38+
7. continuing
39+
40+
### Unordered List
41+
42+
- Unordered
43+
- list
44+
- with
45+
- sub-list
46+
- and
47+
- more
48+
49+
## Horizontal Rule
50+
51+
Foo
52+
53+
---
54+
55+
Bar
56+
57+
## Table
58+
59+
Some text
60+
61+
| Table Heading | Center align | Right align | Table Heading |
62+
| :------------ | :-------------: | --------------: | :------------ |
63+
| Item 1 | Item 3 | Item 4 | Item 5 |
64+
| Item 1 | Item 3 | Item 4 | Item 5 |
65+
| Item 1 | Item 3 | Item 4 | Item 5 |
66+
| Item 1 | Item 3 | Item 4 | Item 5 |
67+
| Item 1 | Item 3 | Item 4 | Item 5 |
68+
69+
Some more text
70+
71+
## Code
72+
73+
### Inline code
74+
75+
Some normal text with some `inline code` in it, plus <kbd>keyboard input</kbd> and <samp>sample output</samp>.
76+
77+
### Block Code
78+
79+
Text
80+
81+
```ruby
82+
require 'twitter_ebooks'
83+
84+
class MyBot < Ebooks::Bot
85+
# Configuration here applies to all MyBots
86+
def configure
87+
88+
self.consumer_key = ENV['TWITTER_CONSUMER_KEY']
89+
self.consumer_secret = ENV['TWITTER_CONSUMER_SECRET']
90+
91+
end
92+
93+
def on_startup
94+
model = Ebooks::Model.load("model/text.model")
95+
scheduler.cron '0 6,18,22 * * * America/New_York' do
96+
tweet(model.make_statement(140))
97+
end
98+
end
99+
end
100+
101+
# Make a MyBot and attach it to an account
102+
MyBot.new("mage__ebooks") do |bot|
103+
bot.access_token = ENV['TWITTER_ACCESS_TOKEN']
104+
bot.access_token_secret = ENV['TWITTER_ACCESS_TOKEN_SECRET']
105+
end
106+
```
107+
108+
More text
109+
110+
## Messages
111+
112+
This is OK. [Link](#)
113+
{:.ok}
114+
115+
This is info. [Link](#)
116+
{:.info}
117+
118+
This is a warning. [Link](#)
119+
{:.warning}
120+
121+
This is an error. [Link](#)
122+
{:.error}
123+
124+
## Forms
125+
126+
<form>
127+
<label for="testinput">Text input</label>
128+
<input id="testinput" type="text" /><br />
129+
130+
<label for="testta">Textarea</label>
131+
<textarea id="testta"></textarea><br />
132+
</form>
133+
134+
Primary
135+
{:.button}
136+
137+
Secondary
138+
{:.button--secondary}
139+
140+
Tertiary
141+
{:.button--tertiary}
142+
143+
Outline
144+
{:.button--outline}
145+
146+
[^1]: This is a [footnote](https://en.wikipedia.org/wiki/Note_(typography)). It also has **bold**, *italic*, ***bold italic*** and `code` in it.

0 commit comments

Comments
 (0)