【发布时间】:2017-02-02 05:06:55
【问题描述】:
我正在开发一个个人网页,并且我将最新的 Pixyll 版本分叉到我的存储库中。我对_posts/2014-06-08-pixyll-has-pagination.md 进行了更改,并在标题中包含了以下属性
published: true
permalink: /test/
当我将我的 url 指向 webpage/test/ 时,我可以看到博客文章,但我无法在我的主页上看到它作为最近帖子的一部分。我的index.html如下:
---
layout: default
---
{% assign posts_count = (paginator.posts | size) %}
<div class="home">
{% if posts_count > 0 %}
<div class="posts">
{% for post in paginator.posts %}
<div class="post py3">
<p class="post-meta">{{ post.date | date: site.date_format }}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
<p class="post-summary">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
</div>
{% endfor %}
</div>
{% include pagination.html %}
{% else %}
<h1 class='center'>{{ site.text.index.coming_soon }}</h3>
{% endif %}
</div>
【问题讨论】:
-
真的是 ruby-on rails 相关问题吗?