💬 update year in logs to be dynamic

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-01-06 21:35:20 +01:00
parent af9233b9d5
commit 7c1d170909
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6
2 changed files with 6 additions and 2 deletions

View file

@ -20,11 +20,13 @@ function getEmojiStars(rating:any) {
}
return stars;
}
const today = new Date();
---
<SectionContainer>
<main class="flex flex-col gap-4 mt-4">
<h1 class="text-3xl font-extrabold">📚 ¿Dónde está la biblioteca?</h1>
<h2 class="text-xl font-semibold">2023 - Currently Reading:</h2>
<h2 class="text-xl font-semibold">{today.getFullYear()} - Currently Reading:</h2>
<p>📖 Multiverses: An Anthology of Alternate Realities</p>
{sortedYears.map(year => (
<section>

View file

@ -20,11 +20,13 @@ function getEmojiStars(rating:any) {
}
return stars;
}
const today = new Date();
---
<SectionContainer>
<main class="flex flex-col gap-4 mt-4">
<h1 class="text-3xl font-extrabold">📺 La télévision</h1>
<h2 class="text-xl font-semibold">2023 - Currently Watching:</h2>
<h2 class="text-xl font-semibold">{today.getFullYear()} - Currently Watching:</h2>
<p>👀 ONE PIECE Egghead Arc</p>
<p>👀 Star Wars: The Clone Wars S02</p>
{sortedYears.map(year => (