Collections 使用github页面获取集合时遇到问题
在那里 这是我的config.yaml:Collections 使用github页面获取集合时遇到问题,collections,jekyll,github-pages,Collections,Jekyll,Github Pages,在那里 这是我的config.yaml: # Permalinks permalink: pretty relative_permalinks: true # Setup title: Tom Critchlow Title tagline: My Github Site url: http://tomcritchlow.com paginate: 1 baseurl: / aut
# 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: tjcritchlow@gmail.com
collections:
- poetry:
output: true
这是我的文件夹结构:
-config.yaml
-index.html
-archive.md
_layouts
_poetry
_posts
但在我的归档页面上,当我这样做时:
{% for poem in site.poetry %}
hello world
{% endfor %}
什么都没发生。。。我也在努力渲染我诗集中的任何东西
您可以在此处看到github回购协议:
我做错了什么?如何让集合在Github页面上工作?我对github完全陌生。谢谢。您使用的是
config.yaml
而不是\u config.yaml
看着您的github存储库,我对您的问题有了一些想法
首先,回答您的问题,如果您希望Jekyll将其考虑在内,您的config.yaml
文件必须命名为\u config.yml
但是,你的网站上还有很多其他的问题(空的\u layouts/default.html
,没有\u layouts/page.html
,\u layouts/blog.html
作为首要问题,baseurl/
设置为/
,而不是”
,…)
我真的认为最好是开发一个新的干净版本,并将您的内容复制到其中
gem更新
- 创建一个新的工作文件夹,例如:
mkdir newjekyll
- 去吧
jekyll new.
- 将您的内容复制到新的jekyll,包括您的收藏
jekyll服务
- 在127.0.0.1:4000时一切正常/