Better slugs, improvements to projects, some fixes
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 14m57s

This commit is contained in:
2025-08-14 11:11:10 +09:30
parent 1f45a74b2a
commit 778490bed8
25 changed files with 134 additions and 69 deletions

View File

@@ -8,6 +8,8 @@ import { Icon } from "astro-icon/components";
import { Image } from "astro:assets";
import type { CollectionEntry } from "astro:content";
import { slugify } from '@lib/utils';
interface Props {
project: CollectionEntry<"projects">;
textOn?: "left" | "right";
@@ -130,7 +132,7 @@ const projectHasBody = project.body && project.body.trim().length > 0;
>
<span
><h2 class="font-header-alt inline-block text-lg font-semibold">
{projectHasBody && <TextLink href=`/projects/${project.id}/`>{project.data.title}</TextLink>}{!projectHasBody && project.data.title }{!project.data.ongoing && <span class="italic text-sm font-light"> ({project.data.date.getFullYear()})</span>}</h2></span
{projectHasBody && <TextLink href=`/projects/${slugify(project.data.type)}/${slugify(project.data.slug)}/`>{project.data.title}</TextLink>}{!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}