Build Failing With Invalid Date Error
biocross opened this issue · 2 comments
biocross commented
I cloned the repo locally and followed the instructions here. But the website fails to build on running grunt serve
with the following error:
Running "jekyll:serve" (jekyll) task
`bundle exec jekyll build --destination _site --config _config.yml,_amsf.yml,_app/_data/curtana.yml,_config.dev.yml --drafts --future` was initiated.
Configuration file: _config.yml
Configuration file: _amsf.yml
Configuration file: _app/_data/curtana.yml
Configuration file: _config.dev.yml
Source: _app
Destination: _site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: Invalid Date: '"\n \n \n\n \n \n \n"' is not a valid datetime. in /_layouts/default.html
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid Date: '"\n \n \n\n \n \n \n"' is not a valid datetime.
Warning: Liquid Exception: Invalid Date: '"\n \n \n\n \n \n \n"' is not a valid datetime. in /_layouts/default.html
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid Date: '"\n \n \n\n \n \n \n"' is not a valid datetime. Use --force to continue.
Aborted due to warnings.
When i build with grunt serve --force
, I get the following error:
Is there something I'm missing here?
biocross commented
For some reason, after removing all the default posts, building, and then re-adding the posts and re-building solved the issue for me.