From ceb3750add5f871fccc89ea28cd8152aad69fe76 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Thu, 14 May 2026 18:00:53 +0200 Subject: [PATCH] client:load + lightweight markdown.ts --- frontend/src/layouts/Layout.astro | 10 ++++----- frontend/src/lib/markdown.ts | 31 ++++++++++++++++++++++++++- frontend/src/pages/contact.astro | 2 +- frontend/src/pages/index.astro | 8 +++---- frontend/src/pages/posts/[slug].astro | 2 +- 5 files changed, 41 insertions(+), 12 deletions(-) diff --git a/frontend/src/layouts/Layout.astro b/frontend/src/layouts/Layout.astro index 4ee9f72..b79b7ce 100644 --- a/frontend/src/layouts/Layout.astro +++ b/frontend/src/layouts/Layout.astro @@ -88,7 +88,7 @@ const hasContact = (siteConfig.contact_links?.length ?? 0) > 0; {isAdmin ? ( 0; )} {isAdmin ? ( 0; class="font-display italic text-sm text-[var(--subtext1)] hover:text-[var(--mauve)] transition-colors tracking-wide" >Contact )} - + {isAdmin && ( )} @@ -151,7 +151,7 @@ const hasContact = (siteConfig.contact_links?.length ?? 0) > 0;

{isAdmin ? ( Or send a note directly - +

diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 3870480..f1dae2f 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -61,7 +61,7 @@ const isAdmin = Astro.cookies.get('admin_session')?.value === '1';

{isAdmin ? ( {isAdmin ? (

)} - {posts.length > 0 && } + {posts.length > 0 && } diff --git a/frontend/src/pages/posts/[slug].astro b/frontend/src/pages/posts/[slug].astro index 2069f2e..ad255d7 100644 --- a/frontend/src/pages/posts/[slug].astro +++ b/frontend/src/pages/posts/[slug].astro @@ -95,7 +95,7 @@ const displayTitle = post ? (post.title || formatSlug(post.slug)) : 'Work'; Edit - + )}