jekyll: Posts on a leap day do not publish
What version of Jekyll are you using (jekyll -v)?
I’m using Jekyll 3.1.2
What operating system are you using?
Mac OS Yosemite
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
I wrote a blog post with in a file 2016-2-29-a-beginners-guide-to-jekyll.md and put this in my _posts directory. When running jekyll serve this file would not be served up and placed in the _site directory.
What did you expect to see?
I expected to see my post served up as 2016-2-29-a-beginners-guide-to-jekyll.html in my _site directory when I ran jekyll serve.
What did you see instead?
Nothing would happen. However, once I changed the date portion of the file to 2016-2-28 the content was served up correctly in the _site directory.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (4 by maintainers)
For me it does work using
--futureEdit: Had the problem with a post dated ‘2016-02-29 22:21:00’ (10:21pm) running the
jekyll buildaround 22:30 (10:30pm)I’m in UTC +800, so for me it is not February 29th yet. I was not aware that Jekyll 3 does not publish future dated posts, so @glasnt is right about the bias towards thinking there was a leap year error going on.
The same thing happened with me; post failed to build with
jekyll servebut did when I pushed the post to my Github Pages repo. I do havejekyll-paginategem in my config file.