Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using post_url causes pages to not build in Github #3179
I have a blog post where I link to a different post using the
When I run jekyll locally, everything is rendered correctly and the link appears properly. Both the post with the markup and the post being linked are in the same directory.
However, when I push to Github, I get a build error notification without a description. I've verified that removing the reference to
My project uses the
The error email I get from Github is anything but helpful:
The page build failed with the following error:
Page build failed. For more information, see https://help.github.com/articles/troubleshooting-github-pages-build-failures.
I've gone through the troubleshooting link and was not able to find any information regarding this problem. Is there anything that I might be doing incorrectly? For reference, here's the diff that breaks my build in github but works locally:
added a commit
Nov 7, 2015
I just ran into this problem too. To clarify @parkr's comment, GitHub is still running version 2.4.0 (check the latest version), and jekyll used a timezone-sensitive implementation that wasn't fixed until version 2.5.2.
Unfortunately, fixing it isn't as easy as I hoped. I thought I could just hardcode the post path. But it turns out that GitHub generates a different URL than what I generate locally, likely because of more Timezone bugs. For example, check out this file
The filename contains "2015-11-02". The date in the front matter indicates "2015-11-02" in a specific timezone. But when it builds on Github, it generates the URL as "2015/11/03".
I would hope that jekyll would use the date from the front-matter. Since the timezone offset is specified, there is no ambiguity, or risk of it changing when run on different servers. But it appears to convert to UTC when generating the url.