Future should be set to false in the default config
This commit is contained in:
parent
af3fe0f30d
commit
559cd6c7e7
|
@ -112,16 +112,16 @@ Feature: Create sites
|
||||||
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
|
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Basic site with internal post linking
|
Scenario: Basic site with internal post linking
|
||||||
Given I have an "index.html" page that contains "URL: {% post_url 2020-01-31-entry2 %}"
|
Given I have an "index.html" page that contains "URL: {% post_url 2008-01-01-entry2 %}"
|
||||||
And I have a configuration file with "permalink" set to "pretty"
|
And I have a configuration file with "permalink" set to "pretty"
|
||||||
And I have a _posts directory
|
And I have a _posts directory
|
||||||
And I have the following posts:
|
And I have the following posts:
|
||||||
| title | date | layout | content |
|
| title | date | layout | content |
|
||||||
| entry1 | 2007-12-31 | post | content for entry1. |
|
| entry1 | 2007-12-31 | post | content for entry1. |
|
||||||
| entry2 | 2020-01-31 | post | content for entry2. |
|
| entry2 | 2008-01-01 | post | content for entry2. |
|
||||||
When I run jekyll build
|
When I run jekyll build
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
|
And I should see "URL: /2008/01/01/entry2/" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Basic site with whitelisted dotfile
|
Scenario: Basic site with whitelisted dotfile
|
||||||
Given I have an ".htaccess" file that contains "SomeDirective"
|
Given I have an ".htaccess" file that contains "SomeDirective"
|
||||||
|
@ -156,3 +156,15 @@ Feature: Create sites
|
||||||
And the "_site/index.html" file should exist
|
And the "_site/index.html" file should exist
|
||||||
And the "_site/public.html" file should exist
|
And the "_site/public.html" file should exist
|
||||||
And the "_site/secret.html" file should exist
|
And the "_site/secret.html" file should exist
|
||||||
|
|
||||||
|
Scenario: Basic site with page with future date
|
||||||
|
Given I have a _posts directory
|
||||||
|
And I have the following post:
|
||||||
|
| title | date | layout | content |
|
||||||
|
| entry1 | 2020-12-31 | post | content for entry1. |
|
||||||
|
When I run jekyll build
|
||||||
|
Then the _site directory should not exist
|
||||||
|
|
||||||
|
When I run jekyll build --future
|
||||||
|
Then the _site directory should exist
|
||||||
|
And the "_site/2020/12/31/entry1.html" file should exist
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Jekyll
|
||||||
# Filtering Content
|
# Filtering Content
|
||||||
'show_drafts' => nil,
|
'show_drafts' => nil,
|
||||||
'limit_posts' => 0,
|
'limit_posts' => 0,
|
||||||
'future' => true, # remove and make true just default
|
'future' => false,
|
||||||
'unpublished' => false,
|
'unpublished' => false,
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
|
|
|
@ -483,7 +483,7 @@ markdown_ext: "markdown,mkdown,mkdn,mkd,md"
|
||||||
# Filtering Content
|
# Filtering Content
|
||||||
show_drafts: null
|
show_drafts: null
|
||||||
limit_posts: 0
|
limit_posts: 0
|
||||||
future: true
|
future: false
|
||||||
unpublished: false
|
unpublished: false
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
|
|
Loading…
Reference in New Issue