fix: meta tag

This commit is contained in:
Cory Dransfeldt 2024-11-26 10:00:21 -08:00
parent e39bd90911
commit d5a4f83f6f
No known key found for this signature in database
4 changed files with 19 additions and 17 deletions

View file

@ -61,12 +61,13 @@ const pageDescription = md(description);
property="og:description"
content={htmlToText(htmlTruncate(pageDescription))}
/>
<meta property="og:type" content={schema || "page"} />
<meta property="og:type" content={schema || "website"} />
<meta property="og:url" content={`${globals.url}${pageUrl}`} />
<meta
property="og:image"
content={`${globals.cdn_url}${ogImage}?class=w800`}
/>
<meta property="og:site_name" content="coryd.dev">
<meta name="theme-color" content={globals.theme_color} />
<meta name="fediverse:creator" content={globals.mastodon} />
<meta name="generator" content="Astro" />

View file

@ -78,6 +78,7 @@ export const sanitizeContent = (html) =>
"h1",
"h2",
"h3",
"jsx",
],
allowedAttributes: {
a: ["href"],