From f4375a4f5298033006541a28113a8d9600ac6c10 Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Sat, 20 Apr 2024 16:21:15 -0400 Subject: [PATCH] opengraph --- src/layouts/Base.astro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 7f3c29e..de9a863 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -3,6 +3,8 @@ import "styles/style.css"; import Sidebar from "components/Sidebar.astro"; const { headings } = Astro.props; import { ViewTransitions } from "astro:transitions"; + +const title = headings ? headings[0].text + " | dreamland docs" : "404 | dreamland docs"; --- @@ -10,7 +12,13 @@ import { ViewTransitions } from "astro:transitions"; - {headings ? headings[0].text + " | dreamland docs" : "404 | dreamland docs"} + + + + + + + {title}