From bb4b9bf100b80e2504ef1c136b5d0f9b50ac4a0d Mon Sep 17 00:00:00 2001 From: jakemulley Date: Tue, 23 Jan 2024 17:31:18 +0000 Subject: [PATCH] Fix breaking <head> in HTML output by using set:html and a self-closing tag --- src/layouts/Layout.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 087b258..838135b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -15,9 +15,9 @@ const url = Astro.url.pathname; { url === "/" ? ( - <title>{site["site-title"]} + ) : ( - <title>{[title, site["site-title"]].join(" | ")} + ) }