proper title
This commit is contained in:
parent
0405aa4973
commit
3b49718821
2 changed files with 11 additions and 5 deletions
|
@ -2,6 +2,12 @@
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
||||||
|
|
||||||
const page = Astro.url.pathname;
|
const page = Astro.url.pathname;
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { title } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<link rel="stylesheet" href="/styles/css/main.css" />
|
<link rel="stylesheet" href="/styles/css/main.css" />
|
||||||
|
@ -26,21 +32,21 @@ const page = Astro.url.pathname;
|
||||||
<link rel="canonical" href={canonicalURL} />-->
|
<link rel="canonical" href={canonicalURL} />-->
|
||||||
|
|
||||||
<!-- Primary Meta Tags -->
|
<!-- Primary Meta Tags -->
|
||||||
<title>{SITE_TITLE} {page}</title>
|
<title>{title}</title>
|
||||||
<meta name="title" content={SITE_TITLE} />
|
<meta name="title" content={title} />
|
||||||
<meta name="description" content={SITE_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={SITE_TITLE} />
|
<meta property="og:title" content={title} />
|
||||||
<meta property="og:description" content={SITE_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={SITE_TITLE} />
|
<meta property="twitter:title" content={title} />
|
||||||
<meta property="twitter:description" content={SITE_DESCRIPTION} />
|
<meta property="twitter:description" content={SITE_DESCRIPTION} />
|
||||||
|
|
||||||
<!-- Other -->
|
<!-- Other -->
|
||||||
|
|
|
@ -13,7 +13,7 @@ const { title } = Astro.props;
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<Head />
|
<Head title={title}/>
|
||||||
</head>
|
</head>
|
||||||
<body onload="onload()" id="body">
|
<body onload="onload()" id="body">
|
||||||
<Header />
|
<Header />
|
||||||
|
|
Loading…
Reference in a new issue