Use correct descriptions for recent posts on home. Fixes #3
This commit is contained in:
parent
34a15e5ea7
commit
7483b2b034
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
{% for post in site.categories.articles limit:5 %}
|
{% for post in site.categories.articles limit:5 %}
|
||||||
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
|
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
|
||||||
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
|
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||||
<p itemprop="text">{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
<p itemprop="text">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div><!-- /#index -->
|
</div><!-- /#index -->
|
||||||
|
|
Loading…
Reference in a new issue