-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchives.html
25 lines (21 loc) · 877 Bytes
/
archives.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
layout: default
permalink: /archives/
---
<h2>Archives</h2>
<div class="posts archive">
{% for post in site.posts %}
{% unless post.next %}
<h3>{{ post.date | date: '%Y' }}</h3><ul>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul><h3>{{ post.date | date: '%Y' }}</h3><ul>
{% endif %}
{% endunless %}
<li>{{ post.date | date:"%b %d" }} <a href="{{ site.baseurl }}{{ post.url }}" class="post-{{ post.type }}{% if post.type == "image" %} hoverZoomLink{% endif %}"{% if post.type == "image" %} data-hover-zoom-caption="{{ post.title|xml_escape}}" data-hover-zoom-src='["{{ post.embed_url }}"]'{% endif %}>{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
<script type="text/javascript" src="{{site.baseurl}}/js/archives.js"></script>