Refactor changelog date formatting
This commit is contained in:
parent
d48a11c9a2
commit
2dc103f532
|
@ -16,7 +16,7 @@ eleventyNavigation:
|
||||||
|
|
||||||
<h2>Latest Changelogs</h2>
|
<h2>Latest Changelogs</h2>
|
||||||
{% for log in changelogs %}
|
{% for log in changelogs %}
|
||||||
<h3 class="date-style">{{ log.data.date | formatDate }}</h3>
|
<h3 class="date-style">{{ log.date | formatDate }}</h3>
|
||||||
{{ log.templateContent | safe }}
|
{{ log.templateContent | safe }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ eleventyComputed:
|
||||||
<h2>What is New?</h2>
|
<h2>What is New?</h2>
|
||||||
<div class="text-box">
|
<div class="text-box">
|
||||||
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
|
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
|
||||||
<h3>Changelog: {{ log.data.date | formatDate }}</h3>
|
<h3>{{ log.data.title }}</h3>
|
||||||
{{ log.templateContent | safe }}
|
{{ log.templateContent | safe }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
<p><a href="/changelogs">View all site changelogs</a></p>
|
<p><a href="/changelogs">View all site changelogs</a></p>
|
||||||
|
|
Loading…
Reference in New Issue