ruby – Jekyll缺少帖子,页面和默认

前端之家收集整理的这篇文章主要介绍了ruby – Jekyll缺少帖子,页面和默认前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的目标是使用Jekyll Github Pages构建一个网站.我已经遇到麻烦了,我已经把我的Mac从山狮升级到小牛,所以我可以安装Xcode和RedCloth.

我试图使用Github Pages’s official documentation,但是如上所述,这是一个不间断的麻烦.我正在尝试跑步
捆绑管理jekyll服务

但是我收到错误,表示没有这样的日期:

ERROR: YOUR SITE COULD NOT BE BUILT:
                ------------------------------------
                Invalid date '0000-00-00': Post '/vendor/bundle/ruby/2.0.0/gems/jekyll-  2.4.0/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the filename.

所以我今天进去了.下一个错误

ERROR: YOUR SITE COULD NOT BE BUILT:
                ------------------------------------
                Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>': Post '/vendor/bundle/ruby/2.0.0/gems/jekyll-2.4.0/lib/site_template/_posts/2014-10-08-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.

所以我进入了欢迎到jekyll文件,放在今天的日期和时间.

我试图再次运行服务器.我现在无法解决的下一个问题是几个文件似乎缺少:

Build Warning: Layout 'post' requested in vendor/bundle/ruby/2.0.0/gems/jekyll-2.4.0/lib/site_template/_posts/2014-10-08-welcome-to-jekyll.markdown.erb does not exist.
 Build Warning: Layout 'page' requested in vendor/bundle/ruby/2.0.0/gems/jekyll-2.4.0/lib/site_template/about.md does not exist.
 Build Warning: Layout 'default' requested in vendor/bundle/ruby/2.0.0/gems/jekyll-2.4.0/lib/site_template/index.html does not exist.
Conversion error: Jekyll::Converters::Scss encountered an error converting 'vendor/bundle/ruby/2.0.0/gems/jekyll-2.4.0/lib/site_template/css/main.scss'.

Googling的问题没有带来任何答案.从我的理解,这应该是一个直接的过程,但这是一场灾难的整个方式!

回购的网址:https://github.com/DarienLibrary/greendarien/tree/gh-pages

解决方法

你有机会将你的宝石安装到供应商/捆绑包?我得到了相同的错误,这个问题在Jekyll github项目修复了我 https://github.com/jekyll/jekyll/issues/2938
原文链接:https://www.f2er.com/ruby/266054.html

猜你在找的Ruby相关文章