【发布时间】:2016-03-31 15:29:17
【问题描述】:
我有一个博客索引页面,其中包含博客文章和摘录列表。 一旦我点击“阅读更多”链接,就会打开完整的博客文章,但缺少标题和创建日期。
博客索引的结构如下:
{% for post in paginator.posts %}
<div class="entry">
<h1>{{ post.title }}</h1>
<span class="date"><i class="fa fa-clock-o"></i> {{ post.date | date: "%m-%d-%Y"}}</span>
{{ post.excerpt }}
<a class="more-link" href="{{ post.url }}">continue reading <i class="fa fa-chevron-right"></i></a>
</div>
{% endfor %}
我尝试在博文中添加 {{ post.title }} 和日期,无论是在文章的前面还是内联,但它只是显示为空。
如何在我打开的博客文章中显示标题?
谢谢!
【问题讨论】: