diff options
author | Alexis Hovorka <[email protected]> | 2022-10-25 10:59:23 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2022-10-25 10:59:23 -0600 |
commit | 85d82f4dfce3f2b791cffb6e3bcf70e0d0c6df25 (patch) | |
tree | a2ea2fac2334669616e6307fc3bc9a0c2528ae65 /posts/index.njk | |
parent | 634301e45433bf06fcdae500d51275677e568adb (diff) |
[feat] Add post dates
Diffstat (limited to 'posts/index.njk')
-rw-r--r-- | posts/index.njk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/posts/index.njk b/posts/index.njk index f695075..64ea7a6 100644 --- a/posts/index.njk +++ b/posts/index.njk @@ -13,6 +13,8 @@ {% set post = collections.all.slice(-1)[0] -%} <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2> + {%- set postDate = post.date.toISOString().slice(0,10) %} + <p class="post-date"><time datetime="{{ postDate }}">{{ postDate }}</time></p> {{ post.templateContent | fixAnchors(post.url) | safe }} |