【发布时间】:2014-07-10 15:06:43
【问题描述】:
按照 Jekyll 文档 http://jekyllrb.com/docs/collections/ 中的说明,我在我的 jekyll 博客中为开发人员相关的帖子创建了一个集合
collections:
developer:
output: true
在 jekyll 页面上,我尝试输出这样的帖子列表
<ul class="posts">
{% for post in site.developer %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<p>{{ post.excerpt }}</p>
</li>
{% endfor %}
</ul>
这适用于我的本地计算机。我可以在
查看此收藏中的一篇帖子http://localhost:4000/developer/2014-07-07-blah-blah.html
开发者帖子列表显示在开发者页面上
http://localhost:4000/developer/
但是,该列表在 github 页面上不可见,我无法访问该 url 上的帖子。否则,该博客在 github 页面上运行良好,即主页上的所有 site.posts 都是可见的等。
注意,我确实将文件推送到了 github。我可以在 repo 中看到它们。
【问题讨论】:
-
我们能看到github repo吗?
标签: jekyll github-pages