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"> <section class="content__section">
<h2>Updates</h2> <h2>Updates</h2>
<div class="text-box"> <div class="text-box">
<p class="date-style">5 April 2024:</p> {% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<ul> <p class="date-style">{{ log.data.date | niceDate }}:</p>
<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> {{ log.templateContent | safe }}
</ul> {%- endfor %}
<p><a href="/changelog">View all site changelog</a></p> <p><a href="/changelog">View all site changelog</a></p>
</div> </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> <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>