2014-10-08 90 views
10

我的目标是使用Jekyll + Github Pages建立一个网站。我已经遇到了很多麻烦,我必须将我的Mac从Mountain Lion升级到Mavericks,这样我才能安装Xcode和RedCloth。Jekyll缺少帖子,页面和默认

我正在尝试使用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'. 

谷歌搜索的问题,并没有带来任何答案。根据我的理解,这应该是一个非常简单的过程,但整个过程都是一场灾难!

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

+0

你的回购的网址可以提供帮助。 – 2014-10-08 15:14:01

+0

我更新了帖子。自从杰基尔失败后,没有什么可以做到的。 – user3753138 2014-10-08 18:45:18

回答

2

看来,你是不是在良好的工作场所。 您正在使用网站模板,Jekyll使用它来生成新网站。 不要碰这个。

相反,在一个新的文件夹中的工作,如:用户/网络/ mysite的

一旦此文件夹中只是做了jekyll new .

现在你可以做一个jekyll servebundle exec jekyll serve它会奏效。

10

你有没有偶然的将宝石安装到供应商/软件包?我得到了同样的错误,并在哲基尔github上项目这个问题定为我https://github.com/jekyll/jekyll/issues/2938

+2

正如在上面的问题链接: 在你的_config.yml,说'排除:[供应商]' – 2016-05-14 11:53:34

+0

/我想知道为什么更多的人不排除“供应商”默认目录扫描,就像它会排除隐藏或.git文件夹... – Nick 2016-06-05 22:26:02

0

确保谁运行杰基尔用户拥有Gemfile.lock