tigefa 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.markdown +91 -0
- data/Gemfile +2 -0
- data/History.markdown +871 -0
- data/LICENSE +15 -14
- data/README.markdown +59 -0
- data/Rakefile +298 -0
- data/bin/tigefa +158 -0
- data/cucumber.yml +3 -0
- data/features/create_sites.feature +141 -0
- data/features/data.feature +65 -0
- data/features/drafts.feature +25 -0
- data/features/embed_filters.feature +60 -0
- data/features/include_tag.feature +57 -0
- data/features/markdown.feature +67 -0
- data/features/pagination.feature +82 -0
- data/features/permalinks.feature +85 -0
- data/features/post_data.feature +214 -0
- data/features/post_excerpts.feature +50 -0
- data/features/site_configuration.feature +235 -0
- data/features/site_data.feature +107 -0
- data/features/step_definitions/tigefa_steps.rb +189 -0
- data/features/support/env.rb +75 -0
- data/lib/site_template/.gitignore +1 -0
- data/lib/site_template/_config.yml +3 -0
- data/lib/site_template/_layouts/default.html +44 -0
- data/lib/site_template/_layouts/post.html +9 -0
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +24 -0
- data/lib/site_template/css/main.css +160 -0
- data/lib/site_template/css/syntax.css +60 -0
- data/lib/site_template/index.html +13 -0
- data/lib/tigefa/cleaner.rb +73 -0
- data/lib/tigefa/command.rb +27 -0
- data/lib/tigefa/commands/build.rb +70 -0
- data/lib/tigefa/commands/doctor.rb +67 -0
- data/lib/tigefa/commands/new.rb +67 -0
- data/lib/tigefa/commands/serve.rb +65 -0
- data/lib/tigefa/configuration.rb +238 -0
- data/lib/tigefa/converter.rb +48 -0
- data/lib/tigefa/converters/identity.rb +21 -0
- data/lib/tigefa/converters/markdown/kramdown_parser.rb +29 -0
- data/lib/tigefa/converters/markdown/maruku_parser.rb +56 -0
- data/lib/tigefa/converters/markdown/rdiscount_parser.rb +37 -0
- data/lib/tigefa/converters/markdown/redcarpet_parser.rb +70 -0
- data/lib/tigefa/converters/markdown.rb +43 -0
- data/lib/tigefa/converters/textile.rb +50 -0
- data/lib/tigefa/convertible.rb +174 -0
- data/lib/tigefa/core_ext.rb +90 -0
- data/lib/tigefa/deprecator.rb +36 -0
- data/lib/tigefa/draft.rb +35 -0
- data/lib/tigefa/entry_filter.rb +35 -0
- data/lib/tigefa/errors.rb +4 -0
- data/lib/tigefa/excerpt.rb +113 -0
- data/lib/tigefa/filters.rb +174 -0
- data/lib/tigefa/generator.rb +4 -0
- data/lib/tigefa/generators/pagination.rb +217 -0
- data/lib/tigefa/layout.rb +45 -0
- data/lib/tigefa/mime.types +85 -0
- data/lib/tigefa/page.rb +160 -0
- data/lib/tigefa/plugin.rb +75 -0
- data/lib/tigefa/post.rb +312 -0
- data/lib/tigefa/related_posts.rb +59 -0
- data/lib/tigefa/site.rb +427 -0
- data/lib/tigefa/static_file.rb +70 -0
- data/lib/tigefa/stevenson.rb +89 -0
- data/lib/tigefa/tags/gist.rb +48 -0
- data/lib/tigefa/tags/highlight.rb +85 -0
- data/lib/tigefa/tags/include.rb +134 -0
- data/lib/tigefa/tags/post_url.rb +63 -0
- data/lib/tigefa/url.rb +69 -0
- data/lib/tigefa.rb +98 -4
- data/script/bootstrap +2 -0
- data/site/.gitignore +4 -0
- data/site/CNAME +1 -0
- data/site/README +1 -0
- data/site/_config.yml +6 -0
- data/site/_includes/analytics.html +32 -0
- data/site/_includes/docs_contents.html +16 -0
- data/site/_includes/docs_contents_mobile.html +23 -0
- data/site/_includes/docs_option.html +11 -0
- data/site/_includes/docs_ul.html +20 -0
- data/site/_includes/footer.html +15 -0
- data/site/_includes/header.html +18 -0
- data/site/_includes/news_contents.html +23 -0
- data/site/_includes/news_contents_mobile.html +11 -0
- data/site/_includes/news_item.html +24 -0
- data/site/_includes/primary-nav-items.html +14 -0
- data/site/_includes/section_nav.html +22 -0
- data/site/_includes/top.html +17 -0
- data/site/_layouts/default.html +12 -0
- data/site/_layouts/docs.html +23 -0
- data/site/_layouts/news.html +19 -0
- data/site/_layouts/news_item.html +27 -0
- data/site/_posts/2013-05-06-jekyll-1-0-0-released.markdown +23 -0
- data/site/_posts/2013-05-08-jekyll-1-0-1-released.markdown +27 -0
- data/site/_posts/2013-05-12-jekyll-1-0-2-released.markdown +28 -0
- data/site/_posts/2013-06-07-jekyll-1-0-3-released.markdown +25 -0
- data/site/_posts/2013-07-14-jekyll-1-1-0-released.markdown +27 -0
- data/site/_posts/2013-07-24-jekyll-1-1-1-released.markdown +31 -0
- data/site/_posts/2013-07-25-jekyll-1-0-4-released.markdown +20 -0
- data/site/_posts/2013-07-25-jekyll-1-1-2-released.markdown +20 -0
- data/site/_posts/2013-09-06-jekyll-1-2-0-released.markdown +23 -0
- data/site/_posts/2013-09-14-jekyll-1-2-1-released.markdown +19 -0
- data/site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown +19 -0
- data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +43 -0
- data/site/_posts/2013-11-26-jekyll-1-3-1-released.markdown +21 -0
- data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +30 -0
- data/site/_posts/2013-12-16-jekyll-1-4-2-released.markdown +18 -0
- data/site/_posts/2014-01-13-jekyll-1-4-3-released.markdown +27 -0
- data/site/css/gridism.css +110 -0
- data/site/css/normalize.css +1 -0
- data/site/css/pygments.css +70 -0
- data/site/css/style.css +946 -0
- data/site/docs/configuration.md +375 -0
- data/site/docs/contributing.md +128 -0
- data/site/docs/datafiles.md +63 -0
- data/site/docs/deployment-methods.md +109 -0
- data/site/docs/drafts.md +21 -0
- data/site/docs/extras.md +56 -0
- data/site/docs/frontmatter.md +180 -0
- data/site/docs/github-pages.md +91 -0
- data/site/docs/heroku.md +9 -0
- data/site/docs/history.md +866 -0
- data/site/docs/index.md +52 -0
- data/site/docs/installation.md +76 -0
- data/site/docs/migrations.md +11 -0
- data/site/docs/pages.md +86 -0
- data/site/docs/pagination.md +211 -0
- data/site/docs/permalinks.md +180 -0
- data/site/docs/plugins.md +534 -0
- data/site/docs/posts.md +181 -0
- data/site/docs/quickstart.md +32 -0
- data/site/docs/resources.md +46 -0
- data/site/docs/sites.md +29 -0
- data/site/docs/structure.md +190 -0
- data/site/docs/templates.md +339 -0
- data/site/docs/troubleshooting.md +150 -0
- data/site/docs/upgrading.md +146 -0
- data/site/docs/usage.md +63 -0
- data/site/docs/variables.md +322 -0
- data/site/favicon.png +0 -0
- data/site/feed.xml +36 -0
- data/site/freenode.txt +1 -0
- data/site/img/article-footer.png +0 -0
- data/site/img/footer-arrow.png +0 -0
- data/site/img/footer-logo.png +0 -0
- data/site/img/logo-2x.png +0 -0
- data/site/img/octojekyll.png +0 -0
- data/site/img/tube.png +0 -0
- data/site/img/tube1x.png +0 -0
- data/site/index.html +90 -0
- data/site/js/modernizr-2.5.3.min.js +4 -0
- data/site/news/index.html +10 -0
- data/site/news/releases/index.html +10 -0
- data/test/fixtures/broken_front_matter1.erb +5 -0
- data/test/fixtures/broken_front_matter2.erb +4 -0
- data/test/fixtures/broken_front_matter3.erb +7 -0
- data/test/fixtures/exploit_front_matter.erb +4 -0
- data/test/fixtures/front_matter.erb +4 -0
- data/test/helper.rb +65 -0
- data/test/source/+/foo.md +7 -0
- data/test/source/.htaccess +8 -0
- data/test/source/_config.dev.toml +2 -0
- data/test/source/_data/languages.yml +2 -0
- data/test/source/_data/members.yaml +7 -0
- data/test/source/_data/products.yml +1 -0
- data/test/source/_includes/params.html +7 -0
- data/test/source/_includes/sig.markdown +3 -0
- data/test/source/_includes/tmp +1 -0
- data/test/source/_layouts/default.html +27 -0
- data/test/source/_layouts/post/simple.html +1 -0
- data/test/source/_layouts/simple.html +1 -0
- data/test/source/_plugins/dummy.rb +8 -0
- data/test/source/_posts/2008-02-02-not-published.textile +8 -0
- data/test/source/_posts/2008-02-02-published.textile +8 -0
- data/test/source/_posts/2008-10-18-foo-bar.textile +8 -0
- data/test/source/_posts/2008-11-21-complex.textile +8 -0
- data/test/source/_posts/2008-12-03-permalinked-post.textile +9 -0
- data/test/source/_posts/2008-12-13-include.markdown +8 -0
- data/test/source/_posts/2009-01-27-array-categories.textile +10 -0
- data/test/source/_posts/2009-01-27-categories.textile +7 -0
- data/test/source/_posts/2009-01-27-category.textile +7 -0
- data/test/source/_posts/2009-01-27-empty-categories.textile +7 -0
- data/test/source/_posts/2009-01-27-empty-category.textile +7 -0
- data/test/source/_posts/2009-03-12-hash-#1.markdown +6 -0
- data/test/source/_posts/2009-05-18-empty-tag.textile +6 -0
- data/test/source/_posts/2009-05-18-empty-tags.textile +6 -0
- data/test/source/_posts/2009-05-18-tag.textile +6 -0
- data/test/source/_posts/2009-05-18-tags.textile +9 -0
- data/test/source/_posts/2009-06-22-empty-yaml.textile +3 -0
- data/test/source/_posts/2009-06-22-no-yaml.textile +1 -0
- data/test/source/_posts/2010-01-08-triple-dash.markdown +5 -0
- data/test/source/_posts/2010-01-09-date-override.textile +7 -0
- data/test/source/_posts/2010-01-09-time-override.textile +7 -0
- data/test/source/_posts/2010-01-09-timezone-override.textile +7 -0
- data/test/source/_posts/2010-01-16-override-data.textile +4 -0
- data/test/source/_posts/2011-04-12-md-extension.md +7 -0
- data/test/source/_posts/2011-04-12-text-extension.text +0 -0
- data/test/source/_posts/2013-01-02-post-excerpt.markdown +14 -0
- data/test/source/_posts/2013-01-12-nil-layout.textile +6 -0
- data/test/source/_posts/2013-01-12-no-layout.textile +5 -0
- data/test/source/_posts/2013-03-19-not-a-post.markdown/.gitkeep +0 -0
- data/test/source/_posts/2013-04-11-custom-excerpt.markdown +10 -0
- data/test/source/_posts/2013-05-10-number-category.textile +7 -0
- data/test/source/_posts/2013-07-22-post-excerpt-with-layout.markdown +23 -0
- data/test/source/_posts/2013-08-01-mkdn-extension.mkdn +0 -0
- data/test/source/_posts/2014-01-06-permalink-traversal.md +5 -0
- data/test/source/_posts/es/2008-11-21-nested.textile +8 -0
- data/test/source/about.html +6 -0
- data/test/source/category/_posts/2008-9-23-categories.textile +6 -0
- data/test/source/contacts/bar.html +5 -0
- data/test/source/contacts/index.html +5 -0
- data/test/source/contacts.html +5 -0
- data/test/source/css/screen.css +76 -0
- data/test/source/deal.with.dots.html +7 -0
- data/test/source/exploit.md +5 -0
- data/test/source/foo/_posts/bar/2008-12-12-topical-post.textile +8 -0
- data/test/source/index.html +22 -0
- data/test/source/products.yml +4 -0
- data/test/source/sitemap.xml +32 -0
- data/test/source/symlink-test/_data +1 -0
- data/test/source/symlink-test/symlinked-dir +1 -0
- data/test/source/symlink-test/symlinked-file +1 -0
- data/test/source/win/_posts/2009-05-24-yaml-linebreak.markdown +7 -0
- data/test/source/z_category/_posts/2008-9-23-categories.textile +6 -0
- data/test/suite.rb +11 -0
- data/test/test_command.rb +39 -0
- data/test/test_configuration.rb +181 -0
- data/test/test_convertible.rb +51 -0
- data/test/test_core_ext.rb +88 -0
- data/test/test_entry_filter.rb +74 -0
- data/test/test_excerpt.rb +78 -0
- data/test/test_filters.rb +113 -0
- data/test/test_generated_site.rb +83 -0
- data/test/test_kramdown.rb +62 -0
- data/test/test_new_command.rb +104 -0
- data/test/test_page.rb +212 -0
- data/test/test_pager.rb +116 -0
- data/test/test_post.rb +592 -0
- data/test/test_rdiscount.rb +22 -0
- data/test/test_redcarpet.rb +61 -0
- data/test/test_redcloth.rb +86 -0
- data/test/test_related_posts.rb +47 -0
- data/test/test_site.rb +333 -0
- data/test/test_tags.rb +490 -0
- data/test/test_url.rb +28 -0
- data/tigefa.gemspec +306 -0
- metadata +575 -45
- data/README.md +0 -4
@@ -0,0 +1,214 @@
|
|
1
|
+
Feature: Post data
|
2
|
+
As a hacker who likes to blog
|
3
|
+
I want to be able to embed data into my posts
|
4
|
+
In order to make the posts slightly dynamic
|
5
|
+
|
6
|
+
Scenario: Use post.title variable
|
7
|
+
Given I have a _posts directory
|
8
|
+
And I have a _layouts directory
|
9
|
+
And I have the following post:
|
10
|
+
| title | date | layout | content |
|
11
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
12
|
+
And I have a simple layout that contains "Post title: {{ page.title }}"
|
13
|
+
When I run jekyll
|
14
|
+
Then the _site directory should exist
|
15
|
+
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
|
16
|
+
|
17
|
+
Scenario: Use post.url variable
|
18
|
+
Given I have a _posts directory
|
19
|
+
And I have a _layouts directory
|
20
|
+
And I have the following post:
|
21
|
+
| title | date | layout | content |
|
22
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
23
|
+
And I have a simple layout that contains "Post url: {{ page.url }}"
|
24
|
+
When I run jekyll
|
25
|
+
Then the _site directory should exist
|
26
|
+
And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
|
27
|
+
|
28
|
+
Scenario: Use post.date variable
|
29
|
+
Given I have a _posts directory
|
30
|
+
And I have a _layouts directory
|
31
|
+
And I have the following post:
|
32
|
+
| title | date | layout | content |
|
33
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
34
|
+
And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
|
35
|
+
When I run jekyll
|
36
|
+
Then the _site directory should exist
|
37
|
+
And I should see "Post date: 27 Mar 2009" in "_site/2009/03/27/star-wars.html"
|
38
|
+
|
39
|
+
Scenario: Use post.id variable
|
40
|
+
Given I have a _posts directory
|
41
|
+
And I have a _layouts directory
|
42
|
+
And I have the following post:
|
43
|
+
| title | date | layout | content |
|
44
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
45
|
+
And I have a simple layout that contains "Post id: {{ page.id }}"
|
46
|
+
When I run jekyll
|
47
|
+
Then the _site directory should exist
|
48
|
+
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
|
49
|
+
|
50
|
+
Scenario: Use post.content variable
|
51
|
+
Given I have a _posts directory
|
52
|
+
And I have a _layouts directory
|
53
|
+
And I have the following post:
|
54
|
+
| title | date | layout | content |
|
55
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
56
|
+
And I have a simple layout that contains "Post content: {{ content }}"
|
57
|
+
When I run jekyll
|
58
|
+
Then the _site directory should exist
|
59
|
+
And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
|
60
|
+
|
61
|
+
Scenario: Use post.categories variable when category is in a folder
|
62
|
+
Given I have a movies directory
|
63
|
+
And I have a movies/_posts directory
|
64
|
+
And I have a _layouts directory
|
65
|
+
And I have the following post in "movies":
|
66
|
+
| title | date | layout | content |
|
67
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
68
|
+
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
69
|
+
When I run jekyll
|
70
|
+
Then the _site directory should exist
|
71
|
+
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
72
|
+
|
73
|
+
Scenario: Use post.tags variable
|
74
|
+
Given I have a _posts directory
|
75
|
+
And I have a _layouts directory
|
76
|
+
And I have the following post:
|
77
|
+
| title | date | layout | tag | content |
|
78
|
+
| Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
|
79
|
+
And I have a simple layout that contains "Post tags: {{ page.tags }}"
|
80
|
+
When I run jekyll
|
81
|
+
Then the _site directory should exist
|
82
|
+
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
|
83
|
+
|
84
|
+
Scenario: Use post.categories variable when categories are in folders
|
85
|
+
Given I have a scifi directory
|
86
|
+
And I have a scifi/movies directory
|
87
|
+
And I have a scifi/movies/_posts directory
|
88
|
+
And I have a _layouts directory
|
89
|
+
And I have the following post in "scifi/movies":
|
90
|
+
| title | date | layout | content |
|
91
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
92
|
+
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
93
|
+
When I run jekyll
|
94
|
+
Then the _site directory should exist
|
95
|
+
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
96
|
+
|
97
|
+
Scenario: Use post.categories variable when categories are in folders with mixed case
|
98
|
+
Given I have a scifi directory
|
99
|
+
And I have a scifi/Movies directory
|
100
|
+
And I have a scifi/Movies/_posts directory
|
101
|
+
And I have a _layouts directory
|
102
|
+
And I have the following post in "scifi/Movies":
|
103
|
+
| title | date | layout | content |
|
104
|
+
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
|
105
|
+
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
106
|
+
When I run jekyll
|
107
|
+
Then the _site directory should exist
|
108
|
+
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
109
|
+
|
110
|
+
Scenario: Use post.categories variable when category is in YAML
|
111
|
+
Given I have a _posts directory
|
112
|
+
And I have a _layouts directory
|
113
|
+
And I have the following post:
|
114
|
+
| title | date | layout | category | content |
|
115
|
+
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
|
116
|
+
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
117
|
+
When I run jekyll
|
118
|
+
Then the _site directory should exist
|
119
|
+
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
120
|
+
|
121
|
+
Scenario: Use post.categories variable when category is in YAML and is mixed-case
|
122
|
+
Given I have a _posts directory
|
123
|
+
And I have a _layouts directory
|
124
|
+
And I have the following post:
|
125
|
+
| title | date | layout | category | content |
|
126
|
+
| Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. |
|
127
|
+
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
128
|
+
When I run jekyll
|
129
|
+
Then the _site directory should exist
|
130
|
+
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
131
|
+
|
132
|
+
Scenario: Use post.categories variable when category is in YAML
|
133
|
+
Given I have a _posts directory
|
134
|
+
And I have a _layouts directory
|
135
|
+
And I have the following post:
|
136
|
+
| title | date | layout | category | content |
|
137
|
+
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
|
138
|
+
And I have a simple layout that contains "Post category: {{ page.categories }}"
|
139
|
+
When I run jekyll
|
140
|
+
Then the _site directory should exist
|
141
|
+
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
|
142
|
+
|
143
|
+
Scenario: Use post.categories variable when categories are in YAML with mixed case
|
144
|
+
Given I have a _posts directory
|
145
|
+
And I have a _layouts directory
|
146
|
+
And I have the following posts:
|
147
|
+
| title | date | layout | categories | content |
|
148
|
+
| Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
|
149
|
+
| Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. |
|
150
|
+
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
|
151
|
+
When I run jekyll
|
152
|
+
Then the _site directory should exist
|
153
|
+
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html"
|
154
|
+
And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2013/03/17/star-trek.html"
|
155
|
+
|
156
|
+
Scenario Outline: Use page.path variable
|
157
|
+
Given I have a <dir>/_posts directory
|
158
|
+
And I have the following post in "<dir>":
|
159
|
+
| title | type | date | content |
|
160
|
+
| my-post | html | 2013-04-12 | Source path: {{ page.path }} |
|
161
|
+
When I run jekyll
|
162
|
+
Then the _site directory should exist
|
163
|
+
And I should see "Source path: <path_prefix>_posts/2013-04-12-my-post.html" in "_site/<dir>/2013/04/12/my-post.html"
|
164
|
+
|
165
|
+
Examples:
|
166
|
+
| dir | path_prefix |
|
167
|
+
| . | |
|
168
|
+
| dir | dir/ |
|
169
|
+
| dir/nested | dir/nested/ |
|
170
|
+
|
171
|
+
Scenario: Override page.path variable
|
172
|
+
Given I have a _posts directory
|
173
|
+
And I have the following post:
|
174
|
+
| title | date | path | content |
|
175
|
+
| override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
|
176
|
+
When I run jekyll
|
177
|
+
Then the _site directory should exist
|
178
|
+
And I should see "Custom path: override-path.html" in "_site/2013/04/12/override.html"
|
179
|
+
|
180
|
+
Scenario: Disable a post from being published
|
181
|
+
Given I have a _posts directory
|
182
|
+
And I have an "index.html" file that contains "Published!"
|
183
|
+
And I have the following post:
|
184
|
+
| title | date | layout | published | content |
|
185
|
+
| Star Wars | 2009-03-27 | simple | false | Luke, I am your father. |
|
186
|
+
When I run jekyll
|
187
|
+
Then the _site directory should exist
|
188
|
+
And the "_site/2009/03/27/star-wars.html" file should not exist
|
189
|
+
And I should see "Published!" in "_site/index.html"
|
190
|
+
|
191
|
+
Scenario: Use a custom variable
|
192
|
+
Given I have a _posts directory
|
193
|
+
And I have a _layouts directory
|
194
|
+
And I have the following post:
|
195
|
+
| title | date | layout | author | content |
|
196
|
+
| Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. |
|
197
|
+
And I have a simple layout that contains "Post author: {{ page.author }}"
|
198
|
+
When I run jekyll
|
199
|
+
Then the _site directory should exist
|
200
|
+
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
|
201
|
+
|
202
|
+
Scenario: Previous and next posts title
|
203
|
+
Given I have a _posts directory
|
204
|
+
And I have a _layouts directory
|
205
|
+
And I have the following posts:
|
206
|
+
| title | date | layout | author | content |
|
207
|
+
| Star Wars | 2009-03-27 | ordered | Darth Vader | Luke, I am your father. |
|
208
|
+
| Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. |
|
209
|
+
| Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby |
|
210
|
+
And I have a ordered layout that contains "Previous post: {{ page.previous.title }} and next post: {{ page.next.title }}"
|
211
|
+
When I run jekyll
|
212
|
+
Then the _site directory should exist
|
213
|
+
And I should see "next post: Some like it hot" in "_site/2009/03/27/star-wars.html"
|
214
|
+
And I should see "Previous post: Some like it hot" in "_site/2009/05/27/terminator.html"
|
@@ -0,0 +1,50 @@
|
|
1
|
+
Feature: Post excerpts
|
2
|
+
As a hacker who likes to blog
|
3
|
+
I want to be able to make a static site
|
4
|
+
In order to share my awesome ideas with the interwebs
|
5
|
+
But some people can only focus for a few moments
|
6
|
+
So just give them a taste
|
7
|
+
|
8
|
+
Scenario: An excerpt without a layout
|
9
|
+
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
|
10
|
+
And I have a _posts directory
|
11
|
+
And I have the following posts:
|
12
|
+
| title | date | layout | content |
|
13
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
14
|
+
When I run jekyll
|
15
|
+
Then the _site directory should exist
|
16
|
+
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
|
17
|
+
|
18
|
+
Scenario: An excerpt from a post with a layout
|
19
|
+
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
|
20
|
+
And I have a _posts directory
|
21
|
+
And I have a _layouts directory
|
22
|
+
And I have a post layout that contains "{{ page.excerpt }}"
|
23
|
+
And I have the following posts:
|
24
|
+
| title | date | layout | content |
|
25
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
26
|
+
When I run jekyll
|
27
|
+
Then the _site directory should exist
|
28
|
+
And the _site/2007 directory should exist
|
29
|
+
And the _site/2007/12 directory should exist
|
30
|
+
And the _site/2007/12/31 directory should exist
|
31
|
+
And the "_site/2007/12/31/entry1.html" file should exist
|
32
|
+
And I should see exactly "<p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
33
|
+
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
|
34
|
+
|
35
|
+
Scenario: An excerpt from a post with a layout which has context
|
36
|
+
Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
|
37
|
+
And I have a _posts directory
|
38
|
+
And I have a _layouts directory
|
39
|
+
And I have a post layout that contains "<html><head></head><body>{{ page.excerpt }}</body></html>"
|
40
|
+
And I have the following posts:
|
41
|
+
| title | date | layout | content |
|
42
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
43
|
+
When I run jekyll
|
44
|
+
Then the _site directory should exist
|
45
|
+
And the _site/2007 directory should exist
|
46
|
+
And the _site/2007/12 directory should exist
|
47
|
+
And the _site/2007/12/31 directory should exist
|
48
|
+
And the "_site/2007/12/31/entry1.html" file should exist
|
49
|
+
And I should see exactly "<p>content for entry1.</p>" in "_site/index.html"
|
50
|
+
And I should see exactly "<html><head></head><body><p>content for entry1.</p></body></html>" in "_site/2007/12/31/entry1.html"
|
@@ -0,0 +1,235 @@
|
|
1
|
+
Feature: Site configuration
|
2
|
+
As a hacker who likes to blog
|
3
|
+
I want to be able to configure jekyll
|
4
|
+
In order to make setting up a site easier
|
5
|
+
|
6
|
+
Scenario: Change source directory
|
7
|
+
Given I have a blank site in "_sourcedir"
|
8
|
+
And I have an "_sourcedir/index.html" file that contains "Changing source directory"
|
9
|
+
And I have a configuration file with "source" set to "_sourcedir"
|
10
|
+
When I run jekyll
|
11
|
+
Then the _site directory should exist
|
12
|
+
And I should see "Changing source directory" in "_site/index.html"
|
13
|
+
|
14
|
+
Scenario: Change destination directory
|
15
|
+
Given I have an "index.html" file that contains "Changing destination directory"
|
16
|
+
And I have a configuration file with "destination" set to "_mysite"
|
17
|
+
When I run jekyll
|
18
|
+
Then the _mysite directory should exist
|
19
|
+
And I should see "Changing destination directory" in "_mysite/index.html"
|
20
|
+
|
21
|
+
Scenario Outline: Similarly named source and destination
|
22
|
+
Given I have a blank site in "<source>"
|
23
|
+
And I have an "<source>/index.md" page that contains "markdown"
|
24
|
+
And I have a configuration file with:
|
25
|
+
| key | value |
|
26
|
+
| source | <source> |
|
27
|
+
| destination | <dest> |
|
28
|
+
When I run jekyll
|
29
|
+
Then the <source> directory should exist
|
30
|
+
And the "<dest>/index.html" file should <file_exist> exist
|
31
|
+
And I should see "markdown" in "<source>/index.md"
|
32
|
+
|
33
|
+
Examples:
|
34
|
+
| source | dest | file_exist |
|
35
|
+
| mysite_source | mysite | |
|
36
|
+
| mysite | mysite_dest | |
|
37
|
+
| mysite/ | mysite | not |
|
38
|
+
| mysite | ./mysite | not |
|
39
|
+
| mysite/source | mysite | not |
|
40
|
+
| mysite | mysite/dest | |
|
41
|
+
|
42
|
+
Scenario: Exclude files inline
|
43
|
+
Given I have an "Rakefile" file that contains "I want to be excluded"
|
44
|
+
And I have an "README" file that contains "I want to be excluded"
|
45
|
+
And I have an "index.html" file that contains "I want to be included"
|
46
|
+
And I have a configuration file with "exclude" set to "['Rakefile', 'README']"
|
47
|
+
When I run jekyll
|
48
|
+
Then I should see "I want to be included" in "_site/index.html"
|
49
|
+
And the "_site/Rakefile" file should not exist
|
50
|
+
And the "_site/README" file should not exist
|
51
|
+
|
52
|
+
Scenario: Exclude files with YAML array
|
53
|
+
Given I have an "Rakefile" file that contains "I want to be excluded"
|
54
|
+
And I have an "README" file that contains "I want to be excluded"
|
55
|
+
And I have an "index.html" file that contains "I want to be included"
|
56
|
+
And I have a configuration file with "exclude" set to:
|
57
|
+
| value |
|
58
|
+
| README |
|
59
|
+
| Rakefile |
|
60
|
+
When I run jekyll
|
61
|
+
Then I should see "I want to be included" in "_site/index.html"
|
62
|
+
And the "_site/Rakefile" file should not exist
|
63
|
+
And the "_site/README" file should not exist
|
64
|
+
|
65
|
+
Scenario: Use RDiscount for markup
|
66
|
+
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
67
|
+
And I have a configuration file with "markdown" set to "rdiscount"
|
68
|
+
When I run jekyll
|
69
|
+
Then the _site directory should exist
|
70
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
71
|
+
|
72
|
+
Scenario: Use Kramdown for markup
|
73
|
+
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
74
|
+
And I have a configuration file with "markdown" set to "kramdown"
|
75
|
+
When I run jekyll
|
76
|
+
Then the _site directory should exist
|
77
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
78
|
+
|
79
|
+
Scenario: Use Redcarpet for markup
|
80
|
+
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
81
|
+
And I have a configuration file with "markdown" set to "redcarpet"
|
82
|
+
When I run jekyll
|
83
|
+
Then the _site directory should exist
|
84
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
85
|
+
|
86
|
+
Scenario: Use Maruku for markup
|
87
|
+
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
88
|
+
And I have a configuration file with "markdown" set to "maruku"
|
89
|
+
When I run jekyll
|
90
|
+
Then the _site directory should exist
|
91
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
92
|
+
|
93
|
+
Scenario: Highlight code with pygments
|
94
|
+
Given I have an "index.html" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
95
|
+
And I have a configuration file with "pygments" set to "true"
|
96
|
+
When I run jekyll
|
97
|
+
Then the _site directory should exist
|
98
|
+
And I should see "puts 'Hello world!'" in "_site/index.html"
|
99
|
+
|
100
|
+
Scenario: Set time and no future dated posts
|
101
|
+
Given I have a _layouts directory
|
102
|
+
And I have a page layout that contains "Page Layout: {{ site.posts.size }} on {{ site.time | date: "%Y-%m-%d" }}"
|
103
|
+
And I have a post layout that contains "Post Layout: {{ content }}"
|
104
|
+
And I have an "index.html" page with layout "page" that contains "site index page"
|
105
|
+
And I have a configuration file with:
|
106
|
+
| key | value |
|
107
|
+
| time | 2010-01-01 |
|
108
|
+
| future | false |
|
109
|
+
And I have a _posts directory
|
110
|
+
And I have the following posts:
|
111
|
+
| title | date | layout | content |
|
112
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
113
|
+
| entry2 | 2020-01-31 | post | content for entry2. |
|
114
|
+
When I run jekyll
|
115
|
+
Then the _site directory should exist
|
116
|
+
And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html"
|
117
|
+
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
118
|
+
And the "_site/2020/01/31/entry2.html" file should not exist
|
119
|
+
|
120
|
+
Scenario: Set time and future dated posts allowed
|
121
|
+
Given I have a _layouts directory
|
122
|
+
And I have a page layout that contains "Page Layout: {{ site.posts.size }} on {{ site.time | date: "%Y-%m-%d" }}"
|
123
|
+
And I have a post layout that contains "Post Layout: {{ content }}"
|
124
|
+
And I have an "index.html" page with layout "page" that contains "site index page"
|
125
|
+
And I have a configuration file with:
|
126
|
+
| key | value |
|
127
|
+
| time | 2010-01-01 |
|
128
|
+
| future | true |
|
129
|
+
And I have a _posts directory
|
130
|
+
And I have the following posts:
|
131
|
+
| title | date | layout | content |
|
132
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
133
|
+
| entry2 | 2020-01-31 | post | content for entry2. |
|
134
|
+
When I run jekyll
|
135
|
+
Then the _site directory should exist
|
136
|
+
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
|
137
|
+
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
138
|
+
And I should see "Post Layout: <p>content for entry2.</p>" in "_site/2020/01/31/entry2.html"
|
139
|
+
|
140
|
+
Scenario: Generate proper dates with explicitly set timezone (same as posts' time)
|
141
|
+
Given I have a _layouts directory
|
142
|
+
And I have a page layout that contains "Page Layout: {{ site.posts.size }}"
|
143
|
+
And I have a post layout that contains "Post Layout: {{ content }} built at {{ page.date | date_to_xmlschema }}"
|
144
|
+
And I have an "index.html" page with layout "page" that contains "site index page"
|
145
|
+
And I have a configuration file with:
|
146
|
+
| key | value |
|
147
|
+
| timezone | America/New_York |
|
148
|
+
And I have a _posts directory
|
149
|
+
And I have the following posts:
|
150
|
+
| title | date | layout | content |
|
151
|
+
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
|
152
|
+
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
|
153
|
+
When I run jekyll
|
154
|
+
Then the _site directory should exist
|
155
|
+
And I should see "Page Layout: 2" in "_site/index.html"
|
156
|
+
And I should see "Post Layout: <p>content for entry1.</p> built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html"
|
157
|
+
And I should see "Post Layout: <p>content for entry2.</p> built at 2013-04-10T03:14:00-04:00" in "_site/2013/04/10/entry2.html"
|
158
|
+
|
159
|
+
Scenario: Generate proper dates with explicitly set timezone (different than posts' time)
|
160
|
+
Given I have a _layouts directory
|
161
|
+
And I have a page layout that contains "Page Layout: {{ site.posts.size }}"
|
162
|
+
And I have a post layout that contains "Post Layout: {{ content }} built at {{ page.date | date_to_xmlschema }}"
|
163
|
+
And I have an "index.html" page with layout "page" that contains "site index page"
|
164
|
+
And I have a configuration file with:
|
165
|
+
| key | value |
|
166
|
+
| timezone | Australia/Melbourne |
|
167
|
+
And I have a _posts directory
|
168
|
+
And I have the following posts:
|
169
|
+
| title | date | layout | content |
|
170
|
+
| entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. |
|
171
|
+
| entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. |
|
172
|
+
When I run jekyll
|
173
|
+
Then the _site directory should exist
|
174
|
+
And I should see "Page Layout: 2" in "_site/index.html"
|
175
|
+
And the "_site/2013/04/10/entry1.html" file should exist
|
176
|
+
And the "_site/2013/04/10/entry2.html" file should exist
|
177
|
+
And I should see escaped "Post Layout: <p>content for entry1.</p> built at 2013-04-10T13:22:00+10:00" in "_site/2013/04/10/entry1.html"
|
178
|
+
And I should see escaped "Post Layout: <p>content for entry2.</p> built at 2013-04-10T17:14:00+10:00" in "_site/2013/04/10/entry2.html"
|
179
|
+
|
180
|
+
Scenario: Limit the number of posts generated by most recent date
|
181
|
+
Given I have a _posts directory
|
182
|
+
And I have a configuration file with:
|
183
|
+
| key | value |
|
184
|
+
| limit_posts | 2 |
|
185
|
+
And I have the following posts:
|
186
|
+
| title | date | content |
|
187
|
+
| Apples | 2009-03-27 | An article about apples |
|
188
|
+
| Oranges | 2009-04-01 | An article about oranges |
|
189
|
+
| Bananas | 2009-04-05 | An article about bananas |
|
190
|
+
When I run jekyll
|
191
|
+
Then the _site directory should exist
|
192
|
+
And the "_site/2009/04/05/bananas.html" file should exist
|
193
|
+
And the "_site/2009/04/01/oranges.html" file should exist
|
194
|
+
And the "_site/2009/03/27/apples.html" file should not exist
|
195
|
+
|
196
|
+
Scenario: Copy over normally excluded files when they are explicitly included
|
197
|
+
Given I have a ".gitignore" file that contains ".DS_Store"
|
198
|
+
And I have an ".htaccess" file that contains "SomeDirective"
|
199
|
+
And I have a configuration file with "include" set to:
|
200
|
+
| value |
|
201
|
+
| .gitignore |
|
202
|
+
| .foo |
|
203
|
+
When I run jekyll
|
204
|
+
Then the _site directory should exist
|
205
|
+
And I should see ".DS_Store" in "_site/.gitignore"
|
206
|
+
And the "_site/.htaccess" file should not exist
|
207
|
+
|
208
|
+
Scenario: Using a different layouts directory
|
209
|
+
Given I have a _theme directory
|
210
|
+
And I have a page theme that contains "Page Layout: {{ site.posts.size }} on {{ site.time | date: "%Y-%m-%d" }}"
|
211
|
+
And I have a post theme that contains "Post Layout: {{ content }}"
|
212
|
+
And I have an "index.html" page with layout "page" that contains "site index page"
|
213
|
+
And I have a configuration file with:
|
214
|
+
| key | value |
|
215
|
+
| time | 2010-01-01 |
|
216
|
+
| future | true |
|
217
|
+
| layouts | _theme |
|
218
|
+
And I have a _posts directory
|
219
|
+
And I have the following posts:
|
220
|
+
| title | date | layout | content |
|
221
|
+
| entry1 | 2007-12-31 | post | content for entry1. |
|
222
|
+
| entry2 | 2020-01-31 | post | content for entry2. |
|
223
|
+
When I run jekyll
|
224
|
+
Then the _site directory should exist
|
225
|
+
And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html"
|
226
|
+
And I should see "Post Layout: <p>content for entry1.</p>" in "_site/2007/12/31/entry1.html"
|
227
|
+
And I should see "Post Layout: <p>content for entry2.</p>" in "_site/2020/01/31/entry2.html"
|
228
|
+
|
229
|
+
Scenario: Add a gem-based plugin
|
230
|
+
Given I have an "index.html" file that contains "Whatever"
|
231
|
+
And I have a configuration file with "gems" set to "[jekyll_test_plugin]"
|
232
|
+
When I run jekyll
|
233
|
+
Then the _site directory should exist
|
234
|
+
And I should see "Whatever" in "_site/index.html"
|
235
|
+
And I should see "this is a test" in "_site/test.txt"
|
@@ -0,0 +1,107 @@
|
|
1
|
+
Feature: Site data
|
2
|
+
As a hacker who likes to blog
|
3
|
+
I want to be able to embed data into my site
|
4
|
+
In order to make the site slightly dynamic
|
5
|
+
|
6
|
+
Scenario: Use page variable in a page
|
7
|
+
Given I have an "contact.html" page with title "Contact" that contains "{{ page.title }}: email@example.com"
|
8
|
+
When I run jekyll
|
9
|
+
Then the _site directory should exist
|
10
|
+
And I should see "Contact: email@example.com" in "_site/contact.html"
|
11
|
+
|
12
|
+
Scenario Outline: Use page.path variable in a page
|
13
|
+
Given I have a <dir> directory
|
14
|
+
And I have a "<path>" page that contains "Source path: {{ page.path }}"
|
15
|
+
When I run jekyll
|
16
|
+
Then the _site directory should exist
|
17
|
+
And I should see "Source path: <path>" in "_site/<path>"
|
18
|
+
|
19
|
+
Examples:
|
20
|
+
| dir | path |
|
21
|
+
| . | index.html |
|
22
|
+
| dir | dir/about.html |
|
23
|
+
| dir/nested | dir/nested/page.html |
|
24
|
+
|
25
|
+
Scenario: Override page.path
|
26
|
+
Given I have an "override.html" page with path "custom-override.html" that contains "Custom path: {{ page.path }}"
|
27
|
+
When I run jekyll
|
28
|
+
Then the _site directory should exist
|
29
|
+
And I should see "Custom path: custom-override.html" in "_site/override.html"
|
30
|
+
|
31
|
+
Scenario: Use site.time variable
|
32
|
+
Given I have an "index.html" page that contains "{{ site.time }}"
|
33
|
+
When I run jekyll
|
34
|
+
Then the _site directory should exist
|
35
|
+
And I should see today's time in "_site/index.html"
|
36
|
+
|
37
|
+
Scenario: Use site.posts variable for latest post
|
38
|
+
Given I have a _posts directory
|
39
|
+
And I have an "index.html" page that contains "{{ site.posts.first.title }}: {{ site.posts.first.url }}"
|
40
|
+
And I have the following posts:
|
41
|
+
| title | date | content |
|
42
|
+
| First Post | 2009-03-25 | My First Post |
|
43
|
+
| Second Post | 2009-03-26 | My Second Post |
|
44
|
+
| Third Post | 2009-03-27 | My Third Post |
|
45
|
+
When I run jekyll
|
46
|
+
Then the _site directory should exist
|
47
|
+
And I should see "Third Post: /2009/03/27/third-post.html" in "_site/index.html"
|
48
|
+
|
49
|
+
Scenario: Use site.posts variable in a loop
|
50
|
+
Given I have a _posts directory
|
51
|
+
And I have an "index.html" page that contains "{% for post in site.posts %} {{ post.title }} {% endfor %}"
|
52
|
+
And I have the following posts:
|
53
|
+
| title | date | content |
|
54
|
+
| First Post | 2009-03-25 | My First Post |
|
55
|
+
| Second Post | 2009-03-26 | My Second Post |
|
56
|
+
| Third Post | 2009-03-27 | My Third Post |
|
57
|
+
When I run jekyll
|
58
|
+
Then the _site directory should exist
|
59
|
+
And I should see "Third Post Second Post First Post" in "_site/index.html"
|
60
|
+
|
61
|
+
Scenario: Use site.categories.code variable
|
62
|
+
Given I have a _posts directory
|
63
|
+
And I have an "index.html" page that contains "{% for post in site.categories.code %} {{ post.title }} {% endfor %}"
|
64
|
+
And I have the following posts:
|
65
|
+
| title | date | category | content |
|
66
|
+
| Awesome Hack | 2009-03-26 | code | puts 'Hello World' |
|
67
|
+
| Delicious Beer | 2009-03-26 | food | 1) Yuengling |
|
68
|
+
When I run jekyll
|
69
|
+
Then the _site directory should exist
|
70
|
+
And I should see "Awesome Hack" in "_site/index.html"
|
71
|
+
|
72
|
+
Scenario: Use site.tags variable
|
73
|
+
Given I have a _posts directory
|
74
|
+
And I have an "index.html" page that contains "{% for post in site.tags.beer %} {{ post.content }} {% endfor %}"
|
75
|
+
And I have the following posts:
|
76
|
+
| title | date | tag | content |
|
77
|
+
| Delicious Beer | 2009-03-26 | beer | 1) Yuengling |
|
78
|
+
When I run jekyll
|
79
|
+
Then the _site directory should exist
|
80
|
+
And I should see "Yuengling" in "_site/index.html"
|
81
|
+
|
82
|
+
Scenario: Order Posts by name when on the same date
|
83
|
+
Given I have a _posts directory
|
84
|
+
And I have an "index.html" page that contains "{% for post in site.posts %}{{ post.title }}:{{ post.previous.title}},{{ post.next.title}} {% endfor %}"
|
85
|
+
And I have the following posts:
|
86
|
+
| title | date | content |
|
87
|
+
| first | 2009-02-26 | first |
|
88
|
+
| A | 2009-03-26 | A |
|
89
|
+
| B | 2009-03-26 | B |
|
90
|
+
| C | 2009-03-26 | C |
|
91
|
+
| last | 2009-04-26 | last |
|
92
|
+
When I run jekyll
|
93
|
+
Then the _site directory should exist
|
94
|
+
And I should see "last:C, C:B,last B:A,C A:first,B first:,A" in "_site/index.html"
|
95
|
+
|
96
|
+
Scenario: Use configuration date in site payload
|
97
|
+
Given I have an "index.html" page that contains "{{ site.url }}"
|
98
|
+
And I have a configuration file with "url" set to "http://example.com"
|
99
|
+
When I run jekyll
|
100
|
+
Then the _site directory should exist
|
101
|
+
And I should see "http://example.com" in "_site/index.html"
|
102
|
+
|
103
|
+
Scenario: Access Jekyll version via jekyll.version
|
104
|
+
Given I have an "index.html" page that contains "{{ jekyll.version }}"
|
105
|
+
When I run jekyll
|
106
|
+
Then the _site directory should exist
|
107
|
+
And I should see "\d+\.\d+\.\d+" in "_site/index.html"
|