Render only the latest changelog in the Updates section

This commit is contained in:
Helen Chong 2024-04-17 00:04:06 +08:00
parent 743617d340
commit e870d62800
1 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ isContentDivided: true
<section class="content__section">
<h2>Updates</h2>
<div class="text-box">
<p class="date-style">5 April 2024:</p>
<ul>
<li>Add table of contents to my <a href="/mycreations/kotor1mods/"><cite>Star Wars: Knights of the Old Republic</cite></a> and <a href="/mycreations/kotor2mods/"><cite>Star Wars: Knights of the Old Republic II: The Sith Lords</cite> mods</a>.</li>
</ul>
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<p class="date-style">{{ log.data.date | niceDate }}:</p>
{{ log.templateContent | safe }}
{%- endfor %}
<p><a href="/changelog">View all site changelog</a></p>
</div>
<p>You can subscribe to the <a href="/feed.xml" target="blank">Leilukin's Hub RSS feed</a> or follow <a href="https://neocities.org/site/leilukin" target="_blank">my Neocities profile</a> to get notified of the updates on this website.</p>