Skip to content

Instantly share code, notes, and snippets.

@luhonghai
Created June 11, 2014 08:48
Show Gist options
  • Save luhonghai/b5d358e4c816fa1b82aa to your computer and use it in GitHub Desktop.
Save luhonghai/b5d358e4c816fa1b82aa to your computer and use it in GitHub Desktop.
---
layout: page
footer: false
navbar: Archives
---
<div id="blog-archives" class="category">
{% for post in site.tags[page.tag] %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article class="page-header">
{% include archive_post.html %}
</article>
{% endfor %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment