--- import { Image } from "astro:assets"; import { getCollection, getEntries, type CollectionEntry } from "astro:content"; import GalleryLayout from "@layouts/GalleryLayout.astro"; import UserComponent from "@components/UserComponent.astro"; import { markdownToPlaintext } from "@utils/markdown_to_plaintext"; import { IconSquareRSS } from "@components/icons"; type PostWithPubDate = CollectionEntry<"blog"> & { data: { pubDate: Date } }; const posts = await Promise.all( ((await getCollection("blog", (post) => !post.data.isDraft && post.data.pubDate)) as PostWithPubDate[]) .sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime()) .map(async (post) => ({ ...post, authors: await getEntries(post.data.authors), })), ); ---

Blog


Posts on whatever has been rattling in my head as of late.

RSS feed