From 2dc103f5327e13d1352d9c4a61631d73d6667585 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sun, 11 Aug 2024 21:27:15 +0800 Subject: [PATCH] Refactor changelog date formatting --- src/changelogs/changelogs.njk | 2 +- src/index.njk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/changelogs/changelogs.njk b/src/changelogs/changelogs.njk index e37bb174..6101fc55 100644 --- a/src/changelogs/changelogs.njk +++ b/src/changelogs/changelogs.njk @@ -16,7 +16,7 @@ eleventyNavigation:

Latest Changelogs

{% for log in changelogs %} -

{{ log.data.date | formatDate }}

+

{{ log.date | formatDate }}

{{ log.templateContent | safe }} {%- endfor %} diff --git a/src/index.njk b/src/index.njk index ffb32b99..49bdad64 100644 --- a/src/index.njk +++ b/src/index.njk @@ -51,8 +51,8 @@ eleventyComputed:

What is New?

- {% for log in collections["changelogs"] | reverse | itemLimit(1) %} -

Changelog: {{ log.data.date | formatDate }}

+ {% for log in collections["changelogs"] | reverse | itemLimit(1) %} +

{{ log.data.title }}

{{ log.templateContent | safe }} {%- endfor %}

View all site changelogs