Skip to content

Instantly share code, notes, and snippets.

@matt-west
Created May 23, 2014 11:18
Show Gist options
  • Save matt-west/9a99994033bb12ebfce2 to your computer and use it in GitHub Desktop.
Save matt-west/9a99994033bb12ebfce2 to your computer and use it in GitHub Desktop.
Postach.io: Posts Loop
{% for post in posts %}
<div class="item">
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
<div class="post-content" data-type-cleanup="true">
{{ post.content }}
</div>
<a class="post-author" href="{{ site.base_url }}">
<img src="{{ post.author.avatar }}" />
<p>
<span class="post-author-name">{{ post.author.name }}</span>
<span class="post-date">on {{ post.created_at|format_date }}</span>
</p>
</a>
</div>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment