Add Breaking New box to the home page

This commit is contained in:
Helen Chong 2024-05-31 11:26:32 +08:00
parent ae8bf643b9
commit 640e1fe999
1 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,7 @@ eleventyComputed:
<p>You can browse all my contents published on this site through the <a href="/archive">Archive</a> page, or the <a href="/categories">Content Categories</a> page.</p> <p>You can browse all my contents published on this site through the <a href="/archive">Archive</a> page, or the <a href="/categories">Content Categories</a> page.</p>
<p>You may use the <a href="/sitemap">site map</a> to quickly navigate this website.</p> <p>You may use the <a href="/sitemap">site map</a> to navigate this website.</p>
<p>Feel free to drop a message and say hi on <a href="/guestbook">my guestbook</a>! You can also contact me by <a href="mailto:{{sitemeta.siteAuthor.email}}">sending me an email</a>.</p> <p>Feel free to drop a message and say hi on <a href="/guestbook">my guestbook</a>! You can also contact me by <a href="mailto:{{sitemeta.siteAuthor.email}}">sending me an email</a>.</p>
@ -35,6 +35,11 @@ eleventyComputed:
<section class="content__section"> <section class="content__section">
<h2>Updates</h2> <h2>Updates</h2>
<div class="text-box">
<h3>Breaking News</h3>
<p>{{ sitemeta.siteName }} now has a custom domain name: leilukin.com! Currently this site is hosted on both Netlify and Neocities.</p>
</div>
<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 class="date-style">{{ log.data.date | formatDate }}:</h3> <h3 class="date-style">{{ log.data.date | formatDate }}:</h3>