blog/source/_includes/archive_post.html
2015-01-19 13:16:21 +01:00

19 lines
788 B
HTML

{% capture date %}{{ post.date }}{% endcapture %}
{% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
{% unless forloop.first %}
</section>
{% endunless %}
<section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1>
{% endunless %}
<article>
<h2 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h2>
<div class="meta">
<div class="date">{{ date | date: "%b %e" }}</div>
<div class="tags">{% include post/categories.html %}</div>
{% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
<div class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></div>
{% endif %}
</div>
</article>