Fix local images and em dash rendering
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-25 05:21:34 +05:30
parent 4b3aa3022e
commit 632543db4d
55 changed files with 432 additions and 117 deletions

View file

@ -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);
---