From 225256029e4d34c08bb1ae2f9efe87c1db276934 Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Thu, 19 Jun 2025 16:22:42 -0700 Subject: [PATCH] use full urls in head meta, add opengraph image --- src/components/head/article.astro | 1 - src/components/head/base.astro | 6 ++-- src/pages/opengraph.astro | 60 +++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 src/pages/opengraph.astro diff --git a/src/components/head/article.astro b/src/components/head/article.astro index a7eaec6..563116c 100644 --- a/src/components/head/article.astro +++ b/src/components/head/article.astro @@ -9,7 +9,6 @@ interface Props { const { publishedTime, modifiedTime, tags = [] } = Astro.props; --- - diff --git a/src/components/head/base.astro b/src/components/head/base.astro index 93e3918..dadd84d 100644 --- a/src/components/head/base.astro +++ b/src/components/head/base.astro @@ -31,8 +31,8 @@ const { title, description } = Astro.props; - - + + @@ -41,5 +41,5 @@ const { title, description } = Astro.props; {`${title} | ${SiteMetadata.title}`} - + \ No newline at end of file diff --git a/src/pages/opengraph.astro b/src/pages/opengraph.astro new file mode 100644 index 0000000..d6d8464 --- /dev/null +++ b/src/pages/opengraph.astro @@ -0,0 +1,60 @@ +--- +import '@fontsource-variable/public-sans'; +import SiteMetadata from '@data/metadata.json'; +--- + + + + + + + + + +
+ + by {SiteMetadata.author.name} + + + + + \ No newline at end of file -- 2.51.0