diff --git a/web/src/layout/Base.astro b/web/src/layout/Base.astro index 9881954..b255237 100644 --- a/web/src/layout/Base.astro +++ b/web/src/layout/Base.astro @@ -3,11 +3,27 @@ import BaseHead from "./BaseHead.astro" import Sidebar from "@components/sidebar" import Navbar from "@components/index/navbar" import Footer from "@components/footer" + +const { + meta = {} +} = Astro.props; + +const { + title = "", + description = "", + ogImage = "", + articleDate = "" +} = meta; ---
-Copyright & License
diff --git a/web/src/pages/now.astro b/web/src/pages/now.astro index 8d67eaa..17d20eb 100644 --- a/web/src/pages/now.astro +++ b/web/src/pages/now.astro @@ -13,7 +13,7 @@ const records = await pb.collection('now').getFullList({ const lastUpdated = getFormattedDate(records[0].updated) --- -{photos[0].title === "" ? "Untitled" : photos[0].title}
📸 {photos[0].camera}
diff --git a/web/src/pages/posts/[slug].astro b/web/src/pages/posts/[slug].astro index 0071ae0..aef3dab 100644 --- a/web/src/pages/posts/[slug].astro +++ b/web/src/pages/posts/[slug].astro @@ -20,7 +20,7 @@ const readTime = calcReadTime(wordCount); --- -