use*_*138 10 ruby github jekyll github-pages
我的目标是使用Jekyll + Github Pages构建一个网站.我已经遇到了很多麻烦,我必须将我的Mac从Mountain Lion升级到Mavericks才能安装Xcode和RedCloth.
我正在尝试使用Github Pages的官方文档,但如上所述它一直是不间断的问题.我正在尝试运行bundle exec jekyll serve
但我收到的错误表明没有这样的日期:
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.
Run Code Online (Sandbox Code Playgroud)
所以我进去了今天的日期.下一个错误是
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.
Run Code Online (Sandbox Code Playgroud)
所以我进入了欢迎来到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'.
Run Code Online (Sandbox Code Playgroud)
谷歌搜索问题没有带来任何答案.根据我的理解,这应该是一个直接的过程,但它一直是一场灾难!
回购的URL:https://github.com/DarienLibrary/greendarien/tree/gh-pages
Lup*_*Dev 10
您是否偶然将宝石安装到供应商/捆绑包中?我得到了同样的错误,这个问题在Jekyll github项目中为我修复了它 https://github.com/jekyll/jekyll/issues/2938
看来你的工作环境不太好。您正在使用 Jekyll 用来生成新站点的站点模板。别碰这个。
相反,在新文件夹中工作,例如:user/www/mysite
进入该文件夹后,只需执行jekyll new .
你现在可以做一个,jekyll serve否则bundle exec jekyll serve它会起作用。
| 归档时间: |
|
| 查看次数: |
2726 次 |
| 最近记录: |