From 6aa6ddabb0c32ca9a959da45bcd860f2db572931 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Tue, 18 Feb 2025 16:23:51 +0100 Subject: [PATCH] feat: add opentags --- src/components/MetaTags.astro | 13 +++++++++++++ src/layouts/Layout.astro | 5 ++++- src/layouts/Post.astro | 5 +++-- src/pages/blog/[slug].astro | 2 ++ src/pages/photos/[slug].astro | 2 ++ src/pages/projects/[slug].astro | 2 ++ src/pages/robots.txt.ts | 13 +++++++++++++ 7 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 src/components/MetaTags.astro create mode 100644 src/pages/robots.txt.ts diff --git a/src/components/MetaTags.astro b/src/components/MetaTags.astro new file mode 100644 index 0000000..f5dc172 --- /dev/null +++ b/src/components/MetaTags.astro @@ -0,0 +1,13 @@ +--- +interface Props { + title: string; + cover: string; +} +--- + + + + + + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7900858..5e2af4f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,10 +6,12 @@ import { useTranslations } from "@i18n/utils"; interface Props { title: string; width?: "full" | "compact"; + image?: string; } const t = useTranslations(Astro.url); const { title } = Astro.props; + import "./theme.css"; import "./global.css"; --- @@ -21,6 +23,7 @@ import "./global.css"; +