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

@@ -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}