On my Jekyll page I get this error once I commit to GitHub:
The page build failed with the following error:
The value 'nil' was passed to a date-related filter that expects valid dates in index.html or one of its layouts.
Any idea how to fix it? I went through all posts and checked the Front Matter but can't find anything wrong...
my repo is on https://github.com/el3ctron/el3ctron.github.io/ displaying http://el3ctron.github.io page.
答案 0 :(得分:1)
如果您的所有日期都有效,我会说出这个文件:https://github.com/el3ctron/el3ctron.github.io/blob/master/_posts/%232016-10-19-Caldas.markdown%23
它不适合_posts文件夹中所需的文件名格式,因为它以#开头。这将使日期nil
格式无效,然后在{{ post.date | date: "%Y" }}
中使用时最终抛出该错误。
重命名或删除它。
您可能也遇到此符号链接文件的问题:https://github.com/el3ctron/el3ctron.github.io/blob/master/_posts/.%232016-10-19-Caldas.markdown,我也试图删除。