This commit is contained in:
nelle 2024-06-26 18:21:40 -06:00
parent 249ffdb8f3
commit 27b73d8f0c

View file

@ -2,7 +2,8 @@
import BaseHead from "../../components/Head.astro"; import BaseHead from "../../components/Head.astro";
import Header from "../../components/Header.astro"; import Header from "../../components/Header.astro";
import Footer from "../../components/Footer.astro"; import Footer from "../../components/Footer.astro";
import Card from "../../components/Card-Blog.astro"; import BlogCard from "../../components/Card-Blog.astro";
import Card from "../../components/Card.astro"
import Layout from "../../layouts/Layout.astro"; import Layout from "../../layouts/Layout.astro";
import { SITE_TITLE, SITE_DESCRIPTION } from "../../consts"; import { SITE_TITLE, SITE_DESCRIPTION } from "../../consts";
import { getCollection } from "astro:content"; import { getCollection } from "astro:content";
@ -21,12 +22,20 @@ const posts = (await getCollection("blog")).sort(
<h1 class="title">The Blog Posts</h1> <h1 class="title">The Blog Posts</h1>
<h2 class="subtitle">This is where I post things and stuff, eventually...</h2> <h2 class="subtitle">This is where I post things and stuff, eventually...</h2>
</center> </center>
<br> <hr>
<ul role="list" class="link-card-grid">
<Card
href="/rss.xml"
title="RSS Feed"
source="/assets/rss.png"
/>
</ul>
<hr>
{ {
posts.map((post) => ( posts.map((post) => (
<> <>
<ul role="list" class="link-card-grid"> <ul role="list" class="link-card-grid">
<Card <BlogCard
href={`/blog/${post.slug}/`} href={`/blog/${post.slug}/`}
title={post.data.title} /> title={post.data.title} />
</ul> </ul>