jekyll/features/pagination.feature

18 lines
751 B
Gherkin

Feature: Site pagination
In order to paginate my blog
As a blog's user
I want divide the posts in several pages
Scenario: Create pages
Given I have a configuration file with "paginate" set to "1"
And I have a _layouts directory
And I have an "index.html" file that contains "Basic Site"
And I have a _posts directory
And I have the following post:
| title | date | layout | content |
| Wargames | 3/27/2009 | default | The only winning move is not to play. |
| Wargames2 | 4/27/2009 | default | The only winning move is not to play2. |
When I run jekyll
Then the _site/page2 directory should exist
And the _site/page2/index.html file should exist