Refactor changelog date formatting

This commit is contained in:
Helen Chong 2024-08-11 21:27:15 +08:00
parent d48a11c9a2
commit 2dc103f532
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ eleventyNavigation:
<h2>Latest Changelogs</h2>
{% for log in changelogs %}
<h3 class="date-style">{{ log.data.date | formatDate }}</h3>
<h3 class="date-style">{{ log.date | formatDate }}</h3>
{{ log.templateContent | safe }}
{%- endfor %}

View File

@ -51,8 +51,8 @@ eleventyComputed:
<section class="content__section">
<h2>What is New?</h2>
<div class="text-box">
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<h3>Changelog: {{ log.data.date | formatDate }}</h3>
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<h3>{{ log.data.title }}</h3>
{{ log.templateContent | safe }}
{%- endfor %}
<p><a href="/changelogs">View all site changelogs</a></p>