Move head tag to BaseHead

This commit is contained in:
Cassidy Williams
2022-11-27 22:29:55 -06:00
parent 0eba426c6e
commit dc4d1c392c
6 changed files with 46 additions and 72 deletions

View File

@@ -31,9 +31,7 @@ let tags = [...new Set(getTags)];
<!DOCTYPE html>
<html lang="en-us">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
</head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<body>
<Header title={SITE_TITLE} />
<main>

View File

@@ -17,14 +17,7 @@ const posts = (await Astro.glob("../posts/*.md")).sort(
<!DOCTYPE html>
<html lang="en-us">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<style>
ul li {
display: flex;
}
</style>
</head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<body>
<Header />
<main>

View File

@@ -37,14 +37,7 @@ const { tag: currentTag } = Astro.params;
<!DOCTYPE html>
<html lang="en-us">
<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<style>
ul li {
display: flex;
}
</style>
</head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
<body>
<Header />
<main>