-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.njk
26 lines (26 loc) · 1.08 KB
/
index.njk
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
26
---
layout: layouts/base.njk
title: Recent Articles
---
<div class="content">
<h1 class="collection-title">{{ title }}</h1>
<ol reversed class="postlist list-reset">
{% for article in collections.articles | reverse %}
<li class="postlist-item{% if article.url == url %} postlist-item-active{% endif %}">
<h2>
<a href="{{ article.url | url }}" class="postlist-link">{% if article.data.title %}{{ article.data.title }}{% else %}<code>{{ article.url }}</code>{% endif %}</a>
</h2>
<time class="post-date icon--date" datetime="{{ article.date | htmlDateString }}">{{ article.date | readableDate }}</time>
<p class="post-teaser">{{ article.data.teaser }}</p>
<ul class="post-tags list-reset">
{% for tag in article.data.tags | filterTagList %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li class="post-tags__item">
<a href="{{ tagUrl | url }}" class="post-tag icon--tag">{{ tag }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ol>
</div>