Add year to project cards if not ongoing
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 13m26s

This commit is contained in:
2025-08-12 11:48:48 +09:30
parent e1d61ac2e0
commit 68a5c45fd5
3 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ title: Dungeons and Dining Tables
role: Composer and Sound Designer
type: Video Game
date: 2026-07-01
ongoing: true
description: "Delve dungeons to collect rare furniture, take that furniture back to your home to decorate and the cosier your house is, the higher your stats! 🪑🏡⚔️ Go forth and drive the grumpiness from the land: Your perfect home is just a dungeon away! Oh, and you play as an Axolotl 🥳"
frontPage: { "order": 1 }
images:

View File

@@ -130,7 +130,7 @@ const projectHasBody = project.body && project.body.trim().length > 0;
>
<span
><h2 class="font-header-alt inline-block text-lg font-semibold">
{projectHasBody && <Link href=`/projects/${project.id}/`>{project.data.title}</Link>}{!projectHasBody && project.data.title }</h2></span
{projectHasBody && <Link href=`/projects/${project.id}/`>{project.data.title}</Link>}{!projectHasBody && project.data.title }{!project.data.ongoing && <span class="italic text-sm font-light"> ({project.data.date.getFullYear()})</span>}</h2></span
>
<h3 class="font-header-alt font-base font-medium">
{project.data.role}

View File

@@ -9,6 +9,7 @@ const projects = defineCollection({
type: z.string(),
date: z.date(),
description: z.string(),
ongoing: z.boolean().optional().default(false),
frontPage: z
.object({
order: z.number()