ruby – Jekyll缺少帖子,页面和默认
发布时间:2020-12-16 22:23:22 所属栏目:百科 来源:网络整理
导读:我的目标是使用Jekyll Github Pages构建一个网站.我已经遇到麻烦了,我已经把我的Mac从山狮升级到小牛,所以我可以安装Xcode和RedCloth. 我试图使用Github Pages’s official documentation,但是如上所述,这是一个不间断的麻烦.我正在尝试跑步 捆绑管理jekyll
我的目标是使用Jekyll
Github Pages构建一个网站.我已经遇到麻烦了,我已经把我的Mac从山狮升级到小牛,所以我可以安装Xcode和RedCloth.
我试图使用Github Pages’s official documentation,但是如上所述,这是一个不间断的麻烦.我正在尝试跑步 但是我收到错误,表示没有这样的日期: 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
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |