blog/source/_includes/archive_post.html

19 lines
788 B
HTML
Raw Normal View History

2012-06-03 11:40:57 +00:00
{% 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>
2013-02-10 14:50:28 +00:00
<h2 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h2>
2012-06-03 11:40:57 +00:00
<div class="meta">
2013-06-17 10:32:24 +00:00
<div class="date">{{ date | date: "%b %e" }}</div>
<div class="tags">{% include post/categories.html %}</div>
2012-06-03 11:40:57 +00:00
{% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
2013-06-17 10:32:24 +00:00
<div class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></div>
2012-06-03 11:40:57 +00:00
{% endif %}
</div>
</article>