Fixed issue with entire list HTML being output for each list item

This commit is contained in:
Japh 2013-07-22 13:37:25 +10:00
parent 86a2c410fc
commit 0032d2e8c8
2 changed files with 5 additions and 5 deletions

View file

@ -5,8 +5,8 @@ title: Articles
description: "An archive of posts sorted by date."
---
{% for post in site.posts %}
<ul class="post-list">
{% for post in site.posts %}
<li><article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost"><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></span></a></article></li>
{% endfor %}
</ul>
{% endfor %}

View file

@ -5,8 +5,8 @@ description: "A simple and clean responsive Jekyll theme for words and photos."
tags: [Jekyll, theme, themes, responsive, blog, minimalism]
---
{% for post in site.posts limit:10 %}
<ul class="post-list">
{% for post in site.posts limit:10 %}
<li><article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost"><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></span></a></article></li>
</ul>
{% endfor %}
{% endfor %}
</ul>