diff --git a/features/create_sites.feature b/features/create_sites.feature
index a25a0d32..5d22397b 100644
--- a/features/create_sites.feature
+++ b/features/create_sites.feature
@@ -19,7 +19,7 @@ Feature: Create sites
Scenario: Basic site with a post
Given I have a _posts directory
And I have the following post:
- | title | date | content |
+ | title | date | content |
| Hackers | 2009-03-27 | My First Exploit |
When I run jekyll
Then the _site directory should exist
@@ -37,7 +37,7 @@ Feature: Create sites
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
+ | title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
And I have a default layout that contains "Post Layout: {{ content }}"
When I run jekyll
@@ -48,7 +48,7 @@ Feature: Create sites
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
+ | title | date | layout | content |
| Wargames | 2009-03-27 | post/simple | The only winning move is not to play. |
And I have a post/simple layout that contains "Post Layout: {{ content }}"
When I run jekyll
@@ -66,14 +66,14 @@ Feature: Create sites
And I have an "another_file" file that contains ""
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
- | entry1 | 2009-03-27 | post | content for entry1. |
- | entry2 | 2009-04-27 | post | content for entry2. |
+ | title | date | layout | content |
+ | entry1 | 2009-03-27 | post | content for entry1. |
+ | entry2 | 2009-04-27 | post | content for entry2. |
And I have a category/_posts directory
And I have the following posts in "category":
- | title | date | layout | content |
- | entry3 | 2009-05-27 | post | content for entry3. |
- | entry4 | 2009-06-27 | post | content for entry4. |
+ | title | date | layout | content |
+ | entry3 | 2009-05-27 | post | content for entry3. |
+ | entry4 | 2009-06-27 | post | content for entry4. |
When I run jekyll
Then the _site directory should exist
And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html"
@@ -116,9 +116,9 @@ Feature: Create sites
And I have a configuration file with "permalink" set to "pretty"
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
- | entry1 | 2007-12-31 | post | content for entry1. |
- | entry2 | 2020-01-31 | post | content for entry2. |
+ | title | date | layout | content |
+ | entry1 | 2007-12-31 | post | content for entry1. |
+ | entry2 | 2020-01-31 | post | content for entry2. |
When I run jekyll
Then the _site directory should exist
And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
diff --git a/features/drafts.feature b/features/drafts.feature
index efff9823..1bf60303 100644
--- a/features/drafts.feature
+++ b/features/drafts.feature
@@ -7,7 +7,7 @@ Feature: Draft Posts
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
- | title | date | layout | content |
+ | title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll with drafts
Then the _site directory should exist
@@ -18,7 +18,7 @@ Feature: Draft Posts
And I have an "index.html" page that contains "Totally index"
And I have a _drafts directory
And I have the following draft:
- | title | date | layout | content |
+ | title | date | layout | content |
| Recipe | 2009-03-27 | default | Not baked yet. |
When I run jekyll
Then the _site directory should exist
@@ -28,7 +28,7 @@ Feature: Draft Posts
Given I have a configuration file with "permalink" set to "none"
And I have a _drafts directory
And I have the following draft:
- | title | date | layout | content |
+ | title | date | layout | content |
| Recipe | 2009-03-27 | simple | Post path: {{ page.path }} |
When I run jekyll with drafts
Then the _site directory should exist
diff --git a/features/embed_filters.feature b/features/embed_filters.feature
index 9d513ec2..ebe7262f 100644
--- a/features/embed_filters.feature
+++ b/features/embed_filters.feature
@@ -7,7 +7,7 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ site.time | date_to_xmlschema }}"
When I run jekyll
@@ -18,8 +18,10 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
+
+
And I have a default layout that contains "{{ page.title | xml_escape }}"
When I run jekyll
Then the _site directory should exist
@@ -29,7 +31,7 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ content | xml_escape }}"
When I run jekyll
@@ -40,7 +42,7 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | tags | content |
+ | title | date | layout | tags | content |
| Star Wars | 2009-03-27 | default | [scifi, movies, force] | These aren't the droids you're looking for. |
And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}"
When I run jekyll
@@ -51,7 +53,7 @@ Feature: Embed filters
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}"
When I run jekyll
diff --git a/features/include_tag.feature b/features/include_tag.feature
index 5f0e5799..bef09e3f 100644
--- a/features/include_tag.feature
+++ b/features/include_tag.feature
@@ -10,14 +10,14 @@ Feature: Include tags
And I have an "_includes/ignore.html" file that contains ""
And I have a _posts directory
And I have the following post:
- | title | date | layout | content |
- | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
- | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
- | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
- | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
+ | title | date | layout | content |
+ | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
+ | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
+ | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
+ | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
| Allow params with spaces and quotes | 2013-04-07 | default | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} |
- | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
- | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
+ | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
+ | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
When I run jekyll
Then the _site directory should exist
And I should see "
\nMy awesome code\n
" in "_site/index.html"
-
+
Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku"
And I have an "index.markdown" file with content:
diff --git a/features/pagination.feature b/features/pagination.feature
index 76c62361..fdf652a2 100644
--- a/features/pagination.feature
+++ b/features/pagination.feature
@@ -9,7 +9,7 @@ Feature: Site pagination
And I have an "index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
+ | title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
@@ -36,7 +36,7 @@ Feature: Site pagination
And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}"
And I have a _posts directory
And I have the following posts:
- | title | date | layout | content |
+ | title | date | layout | content |
| Wargames | 2009-03-27 | default | The only winning move is not to play. |
| Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
| Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
diff --git a/features/permalinks.feature b/features/permalinks.feature
index 64b3c173..879f2590 100644
--- a/features/permalinks.feature
+++ b/features/permalinks.feature
@@ -6,7 +6,7 @@ Feature: Fancy permalinks
Scenario: Use none permalink schema
Given I have a _posts directory
And I have the following post:
- | title | date | content |
+ | title | date | content |
| None Permalink Schema | 2009-03-27 | Totally nothing. |
And I have a configuration file with "permalink" set to "none"
When I run jekyll
@@ -16,7 +16,7 @@ Feature: Fancy permalinks
Scenario: Use pretty permalink schema
Given I have a _posts directory
And I have the following post:
- | title | date | content |
+ | title | date | content |
| Pretty Permalink Schema | 2009-03-27 | Totally wordpress. |
And I have a configuration file with "permalink" set to "pretty"
When I run jekyll
@@ -37,7 +37,7 @@ Feature: Fancy permalinks
Scenario: Use custom permalink schema with prefix
Given I have a _posts directory
And I have the following post:
- | title | category | date | content |
+ | title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
When I run jekyll
@@ -47,7 +47,7 @@ Feature: Fancy permalinks
Scenario: Use custom permalink schema with category
Given I have a _posts directory
And I have the following post:
- | title | category | date | content |
+ | title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/:categories/:title.html"
When I run jekyll
@@ -57,7 +57,7 @@ Feature: Fancy permalinks
Scenario: Use custom permalink schema with squished date
Given I have a _posts directory
And I have the following post:
- | title | category | date | content |
+ | title | category | date | content |
| Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
And I have a configuration file with "permalink" set to "/:month-:day-:year/:title.html"
When I run jekyll
@@ -67,7 +67,7 @@ Feature: Fancy permalinks
Scenario: Use per-post permalink
Given I have a _posts directory
And I have the following post:
- | title | date | permalink | content |
+ | title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/1 | bla bla |
When I run jekyll
Then the _site directory should exist
@@ -77,7 +77,7 @@ Feature: Fancy permalinks
Scenario: Use per-post ending in .html
Given I have a _posts directory
And I have the following post:
- | title | date | permalink | content |
+ | title | date | permalink | content |
| Some post | 2013-04-14 | /custom/posts/some.html | bla bla |
When I run jekyll
Then the _site directory should exist
diff --git a/features/post_data.feature b/features/post_data.feature
index 34f58187..1bd47083 100644
--- a/features/post_data.feature
+++ b/features/post_data.feature
@@ -7,7 +7,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post title: {{ page.title }}"
When I run jekyll
@@ -18,7 +18,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post url: {{ page.url }}"
When I run jekyll
@@ -29,7 +29,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
When I run jekyll
@@ -40,7 +40,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post id: {{ page.id }}"
When I run jekyll
@@ -51,7 +51,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post content: {{ content }}"
When I run jekyll
@@ -63,7 +63,7 @@ Feature: Post data
And I have a movies/_posts directory
And I have a _layouts directory
And I have the following post in "movies":
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
@@ -74,7 +74,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | tag | content |
+ | title | date | layout | tag | content |
| Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
And I have a simple layout that contains "Post tags: {{ page.tags }}"
When I run jekyll
@@ -87,7 +87,7 @@ Feature: Post data
And I have a scifi/movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/movies":
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll
@@ -100,7 +100,7 @@ Feature: Post data
And I have a scifi/Movies/_posts directory
And I have a _layouts directory
And I have the following post in "scifi/Movies":
- | title | date | layout | content |
+ | title | date | layout | content |
| Star Wars | 2009-03-27 | simple | Luke, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
When I run jekyll
@@ -111,7 +111,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | category | content |
+ | title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
@@ -122,7 +122,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | category | content |
+ | title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
@@ -133,7 +133,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following post:
- | title | date | layout | category | content |
+ | title | date | layout | category | content |
| Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
And I have a simple layout that contains "Post category: {{ page.categories }}"
When I run jekyll
@@ -144,7 +144,7 @@ Feature: Post data
Given I have a _posts directory
And I have a _layouts directory
And I have the following posts:
- | title | date | layout | categories | content |
+ | title | date | layout | categories | content |
| Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
| Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. |
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
@@ -156,22 +156,22 @@ Feature: Post data
Scenario Outline: Use page.path variable
Given I have a content for entry1.
" in "_site/index.html" @@ -21,8 +21,8 @@ Feature: Post excerpts And I have a _layouts directory And I have a post layout that contains "{{ page.excerpt }}" And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | When I run jekyll Then the _site directory should exist And the _site/2007 directory should exist @@ -38,8 +38,8 @@ Feature: Post excerpts And I have a _layouts directory And I have a post layout that contains "{{ page.excerpt }}" And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | When I run jekyll Then the _site directory should exist And the _site/2007 directory should exist diff --git a/features/site_configuration.feature b/features/site_configuration.feature index a7c59b00..9305bdb1 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -116,9 +116,9 @@ Feature: Site configuration | future | false | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html" @@ -136,9 +136,9 @@ Feature: Site configuration | future | true | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" @@ -191,10 +191,10 @@ Feature: Site configuration | key | value | | limit_posts | 2 | And I have the following posts: - | title | date | content | - | Apples | 2009-03-27 | An article about apples | - | Oranges | 2009-04-01 | An article about oranges | - | Bananas | 2009-04-05 | An article about bananas | + | title | date | content | + | Apples | 2009-03-27 | An article about apples | + | Oranges | 2009-04-01 | An article about oranges | + | Bananas | 2009-04-05 | An article about bananas | When I run jekyll Then the _site directory should exist And the "_site/2009/04/05/bananas.html" file should exist @@ -225,9 +225,9 @@ Feature: Site configuration | layouts | _theme | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" @@ -245,9 +245,9 @@ Feature: Site configuration Scenario: Add an empty whitelist to restrict all gems Given I have an "index.html" file that contains "Whatever" And I have a configuration file with: - | key | value | + | key | value | | gems | [jekyll_test_plugin] | - | whitelist | [] | + | whitelist | [] | When I run jekyll in safe mode Then the _site directory should exist And I should see "Whatever" in "_site/index.html" @@ -256,9 +256,9 @@ Feature: Site configuration Scenario: Add a whitelist to restrict some gems but allow others Given I have an "index.html" file that contains "Whatever" And I have a configuration file with: - | key | value | + | key | value | | gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] | - | whitelist | [jekyll_test_plugin] | + | whitelist | [jekyll_test_plugin] | When I run jekyll in safe mode Then the _site directory should exist And I should see "Whatever" in "_site/index.html" diff --git a/features/site_data.feature b/features/site_data.feature index faa266b7..029b36ff 100644 --- a/features/site_data.feature +++ b/features/site_data.feature @@ -17,9 +17,9 @@ Feature: Site data And I should see "Source path: