chore(blog): remove the blog listing page
It isn't being updated and I want to focus on the daily email archive list.
This commit is contained in:
parent
34ca0a450a
commit
e37e41254c
|
@ -19,10 +19,6 @@ const footerLinks = [
|
||||||
title: "About",
|
title: "About",
|
||||||
href: "/",
|
href: "/",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Blog",
|
|
||||||
href: "/blog",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Talks",
|
title: "Talks",
|
||||||
href: "/talks",
|
href: "/talks",
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
import ListingPage from "~/components/ListingPage.astro";
|
|
||||||
import PageLayout from "~/layouts/PageLayout.astro";
|
|
||||||
import { getCollection } from 'astro:content';
|
|
||||||
|
|
||||||
const posts = await getCollection('blog');
|
|
||||||
|
|
||||||
// TODO: show all posts when running locally.
|
|
||||||
const filteredPosts = posts
|
|
||||||
.filter((post) => !post.data.draft)
|
|
||||||
.filter((post) => post.data.date);
|
|
||||||
|
|
||||||
const sortedPosts = filteredPosts
|
|
||||||
.map((post) => {
|
|
||||||
const slug = `/blog/${post.slug}`;
|
|
||||||
|
|
||||||
return { item: post, slug };
|
|
||||||
})
|
|
||||||
.sort(
|
|
||||||
(a, b) =>
|
|
||||||
new Date(b.item.data.date).valueOf() -
|
|
||||||
new Date(a.item.data.date).valueOf()
|
|
||||||
);
|
|
||||||
---
|
|
||||||
|
|
||||||
<ListingPage items={sortedPosts} title="Blog">
|
|
||||||
<p slot="intro">
|
|
||||||
This is where I publish my personal blog posts as well as technical posts
|
|
||||||
and tutorials on topics such as Drupal, PHP, Tailwind CSS, automated
|
|
||||||
testing, and systems administration.
|
|
||||||
</p>
|
|
||||||
</ListingPage>
|
|
Loading…
Reference in a new issue