proper title

This commit is contained in:
nelle 2024-08-18 00:50:20 -06:00
parent 0405aa4973
commit 3b49718821
2 changed files with 11 additions and 5 deletions

View file

@ -2,6 +2,12 @@
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
const page = Astro.url.pathname;
interface Props {
title: string;
}
const { title } = Astro.props;
---
<link rel="stylesheet" href="/styles/css/main.css" />
@ -26,21 +32,21 @@ const page = Astro.url.pathname;
<link rel="canonical" href={canonicalURL} />-->
<!-- Primary Meta Tags -->
<title>{SITE_TITLE} {page}</title>
<meta name="title" content={SITE_TITLE} />
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={SITE_DESCRIPTION} />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} />
<meta property="og:title" content={SITE_TITLE} />
<meta property="og:title" content={title} />
<meta property="og:description" content={SITE_DESCRIPTION} />
<meta property="og:profile:gender" content="woman(ish)" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={Astro.url} />
<meta property="twitter:title" content={SITE_TITLE} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={SITE_DESCRIPTION} />
<!-- Other -->

View file

@ -13,7 +13,7 @@ const { title } = Astro.props;
<!doctype html>
<html lang="en">
<head>
<Head />
<Head title={title}/>
</head>
<body onload="onload()" id="body">
<Header />