@@ -9,7 +9,7 @@ Feature: Post data
99 And I have the following post:
1010 | title | date | layout | content |
1111 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
12- And I have a simple layout that contains "Post title: {{ page .title }}"
12+ And I have a simple layout that contains "Post title: {{ site.posts.first .title }}"
1313 When I run jekyll
1414 Then the _site directory should exist
1515 And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
@@ -20,7 +20,7 @@ Feature: Post data
2020 And I have the following post:
2121 | title | date | layout | content |
2222 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
23- And I have a simple layout that contains "Post url: {{ page .url }}"
23+ And I have a simple layout that contains "Post url: {{ site.posts.first .url }}"
2424 When I run jekyll
2525 Then the _site directory should exist
2626 And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
@@ -31,7 +31,7 @@ Feature: Post data
3131 And I have the following post:
3232 | title | date | layout | content |
3333 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
34- And I have a simple layout that contains "Post date: {{ page .date }}"
34+ And I have a simple layout that contains "Post date: {{ site.posts.first .date }}"
3535 When I run jekyll
3636 Then the _site directory should exist
3737 And I should see "Post date: Fri Mar 27" in "_site/2009/03/27/star-wars.html"
@@ -42,7 +42,7 @@ Feature: Post data
4242 And I have the following post:
4343 | title | date | layout | content |
4444 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
45- And I have a simple layout that contains "Post id: {{ page .id }}"
45+ And I have a simple layout that contains "Post id: {{ site.posts.first .id }}"
4646 When I run jekyll
4747 Then the _site directory should exist
4848 And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
@@ -53,7 +53,7 @@ Feature: Post data
5353 And I have the following post:
5454 | title | date | layout | content |
5555 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
56- And I have a simple layout that contains "Post content: {{ content }}"
56+ And I have a simple layout that contains "Post content: {{ site.posts.first. content }}"
5757 When I run jekyll
5858 Then the _site directory should exist
5959 And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
@@ -65,7 +65,7 @@ Feature: Post data
6565 And I have the following post in "movies" :
6666 | title | date | layout | content |
6767 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
68- And I have a simple layout that contains "Post category: {{ page .categories }}"
68+ And I have a simple layout that contains "Post category: {{ site.posts.first .categories }}"
6969 When I run jekyll
7070 Then the _site directory should exist
7171 And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -76,7 +76,7 @@ Feature: Post data
7676 And I have the following post:
7777 | title | date | layout | tag | content |
7878 | Star Wars | 5 /18 /2009 | simple | twist | Luke , I am your father . |
79- And I have a simple layout that contains "Post tags: {{ page .tags }}"
79+ And I have a simple layout that contains "Post tags: {{ site.posts.first .tags }}"
8080 When I run jekyll
8181 Then the _site directory should exist
8282 And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
@@ -89,7 +89,7 @@ Feature: Post data
8989 And I have the following post in "movies/scifi" :
9090 | title | date | layout | content |
9191 | Star Wars | 3 /27 /2009 | simple | Luke , I am your father . |
92- And I have a simple layout that contains "Post categories: {{ page .categories | array_to_sentence_string }}"
92+ And I have a simple layout that contains "Post categories: {{ site.posts.first .categories | array_to_sentence_string }}"
9393 When I run jekyll
9494 Then the _site directory should exist
9595 And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html"
@@ -100,7 +100,7 @@ Feature: Post data
100100 And I have the following post:
101101 | title | date | layout | category | content |
102102 | Star Wars | 3 /27 /2009 | simple | movies | Luke , I am your father . |
103- And I have a simple layout that contains "Post category: {{ page .categories }}"
103+ And I have a simple layout that contains "Post category: {{ site.posts.first .categories }}"
104104 When I run jekyll
105105 Then the _site directory should exist
106106 And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -111,7 +111,7 @@ Feature: Post data
111111 And I have the following post:
112112 | title | date | layout | categories | content |
113113 | Star Wars | 3 /27 /2009 | simple | ['movies ', 'scifi '] | Luke , I am your father . |
114- And I have a simple layout that contains "Post categories: {{ page .categories | array_to_sentence_string }}"
114+ And I have a simple layout that contains "Post categories: {{ site.posts.first .categories | array_to_sentence_string }}"
115115 When I run jekyll
116116 Then the _site directory should exist
117117 And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html"
@@ -133,7 +133,7 @@ Feature: Post data
133133 And I have the following post:
134134 | title | date | layout | author | content |
135135 | Star Wars | 3 /27 /2009 | simple | Darth Vader | Luke , I am your father . |
136- And I have a simple layout that contains "Post author: {{ page .author }}"
136+ And I have a simple layout that contains "Post author: {{ site.posts.first .author }}"
137137 When I run jekyll
138138 Then the _site directory should exist
139139 And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"
0 commit comments