2014-12-03 50 views
0

那裏。無法收集與Github頁面工作的集合

這裏是我的config.yaml:

# Permalinks 
permalink:  pretty 
relative_permalinks: true 

# Setup 
title:   Tom Critchlow Title 
tagline:   My Github Site 
url:    http://tomcritchlow.com 
paginate:   1 
baseurl:  /
author: 
    name:   Tom Critchlow 
    url:   https://twitter.com/tomcritchlow 
    email:   [email protected] 


collections: 
    - poetry: 
    output: true 

這是我的文件夾結構:

-config.yaml 
-index.html 
-archive.md 
_layouts 
_poetry 
_posts 

然而,我的存檔頁上,當我這樣做:

{% for poem in site.poetry %} 
    hello world 
{% endfor %} 

什麼也沒有發生。 ..我也努力在我的詩歌集中呈現任何東西。

你可以看到GitHub的回購在這裏:

https://github.com/tomcritchlow/tomcritchlow.github.io

我在做什麼錯?你如何獲得在Github頁面上工作的集合?我對github完全陌生。謝謝。

回答

1

你有config.yaml而不是_config.yaml

+0

該死......你說得對。這固定的東西正確了。謝謝!告訴你我是github上的n00b – tomcritchlow 2014-12-03 22:38:46

0

看着你Github上庫給了我一些關於你的問題小號

首先回答你的問題,你config.yaml文件MUST來,如果你想化身把它考慮命名_config.yml

,還有很多其他的問題,各地您的網站(空_layouts/default.html,沒有_layouts/page.html_layouts/blog.html因爲沒有前面的問題,baseurl/設置爲/,而不是"",...)。

我真的認爲最好在一個新的乾淨的版本上工作,並將你的內容複製到它。

  • gem update
  • 作出新的工作文件夾如:mkdir newjekyll
  • 去它
  • jekyll new .
  • 您的內容複製到新的化身,包括您的收藏
  • jekyll serve
  • 的旨意127.0.0.1:4000/