diff options
Diffstat (limited to '_site_build/archives.html')
| -rw-r--r-- | _site_build/archives.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/_site_build/archives.html b/_site_build/archives.html new file mode 100644 index 0000000..38efebf --- /dev/null +++ b/_site_build/archives.html @@ -0,0 +1,26 @@ +--- +layout: default +title: Archives +--- +<section id="archives"> + <h1>Archives</h1> + {% for post in site.posts %} + {% unless post.next %} + <h2>{{ post.date | date: '%Y' }}</h2> + <ol> + {% else %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} + {% if year != nyear %} + </ol> + <h2>{{ post.date | date: '%Y' }}</h2> + <ol> + {% endif %} + {% endunless %} + <li> + <time datetime="{{ post.date | date: '%Y-%m-%d' }}" pubdate>{{ post.date | date: '%b' }} {{ post.date | ordinalize }}</time> <a href="{{ post.url }}" target="_self" title="{{ post.title }}">{{ post.title }}</a> + </li> + {% endfor %} + </ol> +</section> + |
