upgrade to 3.0
This commit is contained in:
13
_includes/archive.njk
Normal file
13
_includes/archive.njk
Normal file
@@ -0,0 +1,13 @@
|
||||
<ul reversed>
|
||||
{% for year, yearPosts in collections.postsByYear %}
|
||||
<details><summary>{{ year }}</summary>
|
||||
<ol reversed class="archivelist">
|
||||
{% for post in yearPosts | reverse %}
|
||||
<li class="archivelist-item{% if post.url == url %} archivelist-item-active{% endif %}">
|
||||
<a href="{{ post.url }}" class="archivelist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a><br />
|
||||
<time class="archivelist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("dd LLLL yyyy") }}</time>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol></details>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user