This commit is contained in:
parent
4b3aa3022e
commit
632543db4d
55 changed files with 432 additions and 117 deletions
|
|
@ -3,6 +3,7 @@
|
|||
// all pages through the use of the <BaseHead /> component.
|
||||
import '../styles/global.css';
|
||||
import { SITE_TITLE, SITE_METADATA } from '../consts';
|
||||
import { typographicText } from '@/lib/typography';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
|
@ -13,8 +14,8 @@ interface Props {
|
|||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||
|
||||
const { title, description, image } = Astro.props;
|
||||
const finalTitle = title || SITE_METADATA.title.default;
|
||||
const finalDescription = description || SITE_METADATA.description;
|
||||
const finalTitle = typographicText(title || SITE_METADATA.title.default);
|
||||
const finalDescription = typographicText(description || SITE_METADATA.description);
|
||||
const finalImage = image || SITE_METADATA.openGraph.images[0].url;
|
||||
const imageURL = new URL(finalImage, Astro.url);
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue