Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to build a jekyll site ... invalid date

Tags:

jekyll

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.

ruby and jekyll were installed using homebrew on Mac OSX

like image 214
Nacho de Leon Avatar asked Aug 20 '16 18:08

Nacho de Leon


1 Answers

I found the answer ....

It seems that you need to place the line exclude: [vendor] in _config.yml

found this on the following Github issue: https://github.com/jekyll/jekyll/issues/2938

like image 164
Nacho de Leon Avatar answered Nov 03 '22 02:11

Nacho de Leon