-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (26 loc) · 805 Bytes
/
Copy pathindex.html
File metadata and controls
28 lines (26 loc) · 805 Bytes
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
27
28
---
layout: default
---
<div class="c-article">
<h1>Blog Posts</h1>
{% assign postsByYear = collections.post | groupByYear %} {%- for group in
postsByYear -%}
<h2 class="u-margin-extra">{{ group.year }}</h2>
{% for post in group.posts reversed %}
<article class="c-article-list">
<a
class="c-article-list__anchor u-link-default"
href="{{ post.url }}"
title="{{ post.data.title }}"
>{{ post.data.title }}</a
>
<footer class="c-article-list__date">
<time
class="c-meta__item"
datetime="{{ post.date | date_to_xmlschema }}"
>{{ post.date | date: "%d %B" }}</time
>
</footer>
</article>
{%-endfor -%} {%- endfor -%}
</div>