Clean up and fix build bug

This commit is contained in:
2026-04-13 16:19:34 -07:00
parent e92657b90d
commit 8ce2e32f54
3 changed files with 7 additions and 5 deletions

View File

@@ -40,6 +40,9 @@ const { title, description, image } = Astro.props;
<link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin />
<link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin />
<!-- IndieAuth -->
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />
@@ -48,9 +51,6 @@ const { title, description, image } = Astro.props;
<meta name="title" content={title} />
<meta name="description" content={description} />
<!-- IndieAuth -->
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} />

View File

@@ -3,7 +3,9 @@ const today = new Date();
---
<footer>
<div>
&copy; {today.getFullYear()} Periodic. All rights reserved.
</div>
<script>
window.goatcounter = {
path: (path) => `${location.host}${path}`,

View File

@@ -12,7 +12,7 @@ export async function getPublishedPosts(
const allPosts = (await getCollection("blog", publishedOnly)).sort(
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
);
return tag ? allPosts.filter((p) => p.data.tags.includes(tag)) : allPosts;
return tag ? allPosts.filter((p) => p.data.tags?.includes(tag)) : allPosts;
}
export async function getAllTags(): Promise<string[]> {