From 8270728e8fbf51b429617fbb6f14369791f58de5 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 17 Feb 2026 22:21:45 -0600 Subject: [PATCH] feat: organize layout to consistency --- src/layouts/BaseLayout.astro | 39 +++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index a2e8224..32c5de3 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -2,10 +2,10 @@ import { ClientRouter } from 'astro:transitions'; import { readSingleton } from '@directus/sdk'; -import directus from '@lib/directus'; import BaseHead from '@components/BaseHead.astro'; import Footer from '@components/Footer.astro'; import Header from '@components/Header.astro'; +import directus from '@lib/directus'; import '@styles/global.css'; @@ -20,12 +20,16 @@ interface Props { const { title, description = 'Alex Lebens', ogImage, lang = 'en', structuredData } = Astro.props; const global = await directus.request(readSingleton('site_global')); + const normalizeTitle = !title ? global.name : `${title} | ${global.name}`; --- - {normalizeTitle} + + {normalizeTitle} + + + + + + /> + - -
+ + + + +
+
+
+
+