Refactor Astro components and layouts

This commit is contained in:
2024-09-12 16:36:57 +00:00
parent 0b57b888ca
commit 3376c53b2e
7 changed files with 21 additions and 72 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
---
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
type Props = {
readonly description?: string;
readonly title?: string;
};
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { title, description } = Astro.props;
---