From 7f5aac05c4b9c68eafa579a7c81ebc3ca9be1ed6 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 12 Aug 2024 21:08:20 -0400 Subject: [PATCH] Add some meta to the site for mastodon, and remove the style tag. --- src/handlers/home.tsx | 1 + src/models/SiteMeta.ts | 1 + src/templates/Page.tsx | 1 - src/templates/components/MetaTags.tsx | 10 ++++++++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/handlers/home.tsx b/src/handlers/home.tsx index f57a772..b3fcf74 100644 --- a/src/handlers/home.tsx +++ b/src/handlers/home.tsx @@ -23,6 +23,7 @@ app.get("/", async (c) => { return c.render(, { meta: { description: "The blog for Dave Smith-Hayes, a dad and developer.", + mastodonUrl: "https://hachyderm.io/@davesh" }, }); }); diff --git a/src/models/SiteMeta.ts b/src/models/SiteMeta.ts index 6a0e3dd..355ac07 100644 --- a/src/models/SiteMeta.ts +++ b/src/models/SiteMeta.ts @@ -4,4 +4,5 @@ export type SiteMeta = { author?: string, viewport?: string, title?: string, + mastodonUrl?: string, }; diff --git a/src/templates/Page.tsx b/src/templates/Page.tsx index 35aca2f..2f4080d 100644 --- a/src/templates/Page.tsx +++ b/src/templates/Page.tsx @@ -16,7 +16,6 @@ export function Page({ children, meta }: { children: any, meta: SiteMeta }) { { getPageTitle(meta.title) }davesmithhayes.com -