Clean up and fix build bug
This commit is contained in:
@@ -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-regular.woff" as="font" type="font/woff" crossorigin />
|
||||||
<link rel="preload" href="/fonts/atkinson-bold.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 -->
|
<!-- Canonical URL -->
|
||||||
<link rel="canonical" href={canonicalURL} />
|
<link rel="canonical" href={canonicalURL} />
|
||||||
|
|
||||||
@@ -48,9 +51,6 @@ const { title, description, image } = Astro.props;
|
|||||||
<meta name="title" content={title} />
|
<meta name="title" content={title} />
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
|
|
||||||
<!-- IndieAuth -->
|
|
||||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
|
|
||||||
|
|
||||||
<!-- Open Graph / Facebook -->
|
<!-- Open Graph / Facebook -->
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content={Astro.url} />
|
<meta property="og:url" content={Astro.url} />
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ const today = new Date();
|
|||||||
---
|
---
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
© {today.getFullYear()} Periodic. All rights reserved.
|
<div>
|
||||||
|
© {today.getFullYear()} Periodic. All rights reserved.
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
window.goatcounter = {
|
window.goatcounter = {
|
||||||
path: (path) => `${location.host}${path}`,
|
path: (path) => `${location.host}${path}`,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export async function getPublishedPosts(
|
|||||||
const allPosts = (await getCollection("blog", publishedOnly)).sort(
|
const allPosts = (await getCollection("blog", publishedOnly)).sort(
|
||||||
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
(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[]> {
|
export async function getAllTags(): Promise<string[]> {
|
||||||
|
|||||||
Reference in New Issue
Block a user