Correct title placeholders

This commit is contained in:
nelle 2024-07-04 07:12:42 -06:00
parent 4bbeb86308
commit 55943a0f57

View file

@ -4,9 +4,10 @@ interface Props {
description: string; description: string;
} }
const canonicalURL = new URL(Astro.url.pathname, Astro.site); import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
const { title, description } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const page = Astro.url.pathname
--- ---
<link rel="stylesheet" href="/css/limepot.css" /> <link rel="stylesheet" href="/css/limepot.css" />
@ -28,21 +29,21 @@ const { title, description } = Astro.props;
<link rel="canonical" href={canonicalURL} /> <link rel="canonical" href={canonicalURL} />
<!-- Primary Meta Tags --> <!-- Primary Meta Tags -->
<title>{title}</title> <title>{SITE_TITLE} {page}</title>
<meta name="title" content={title} /> <meta name="title" content={SITE_TITLE} />
<meta name="description" content={description} /> <meta name="description" content={SITE_DESCRIPTION} />
<!-- Open Graph / Facebook --> <!-- Open Graph / Facebook -->
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} /> <meta property="og:url" content={Astro.url} />
<meta property="og:title" content={title} /> <meta property="og:title" content={SITE_TITLE} />
<meta property="og:description" content={description} /> <meta property="og:description" content={SITE_DESCRIPTION} />
<meta property="og:profile:gender" content="woman(ish)"> <meta property="og:profile:gender" content="woman(ish)">
<!-- Twitter --> <!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" /> <meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={Astro.url} /> <meta property="twitter:url" content={Astro.url} />
<meta property="twitter:title" content={title} /> <meta property="twitter:title" content={SITE_TITLE} />
<meta property="twitter:description" content={description} /> <meta property="twitter:description" content={SITE_DESCRIPTION} />
<meta content="she/they" property="pronouns"> <meta content="she/they" property="pronouns">