jekyll/jekyll-help

Invalid date issue solution: Please place a note in the online troubleshooting

cchorn opened this issue · 3 comments

when trying to build a jekyll site with jekyll serve I get this error:

Generating...

ERROR: YOUR SITE COULD NOT BE BUILT:

Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/cache/gems/jekyll-3.2.1/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.

SOLUTION: place the line exclude: [vendor] in _config.yml
found this on the following issue:
jekyll/jekyll#2938

This repository is no longer maintained. If you're still experiencing this problem, please search for your issue on Jekyll Talk, our new community forum. If it isn't there, feel free to post to the Help category and someone will assist you. Thanks!

parkr commented

Hey @cchorn! Great idea. This should be in our troubleshooting docs. Feel free to submit a PR. We mention it on our Continuous Integration docs page, but I can see how that wouldn't help if Google didn't put it right in front of you.

Thanks, I've submitted a PR.
jekyll/jekyll#5271