--- import PageLayout from "@layouts/PageLayout.astro" import TopLayout from "@layouts/TopLayout.astro" import BottomLayout from "@layouts/BottomLayout.astro" import FilteredList from "@components/FilteredList" import { BLOG } from "@consts" import { parseFilterParams } from "@lib/filters" import { listSlimContent } from "@lib/content-source" // Only the fields the cards and the filters read. `content` was serialized into // the island's props on every request and never matched against — the markdown // body is the single largest thing on this page. Appwrite TablesDB first, // bundled .md fallback (src/lib/content-source.ts); ordering is already // newest-first with the byDateDesc tie-break. const slim = await listSlimContent("blog") const posts = slim.map((entry) => ({ id: entry.id, title: entry.data.title, summary: entry.data.summary, date: entry.data.date.toISOString(), tags: entry.data.tags, })) // Frontmatter runs on the server, so the initial filter state has to come from // the request URL rather than `window.location` (see src/pages/search/index.astro). const initial = parseFilterParams(Astro.url.searchParams) ---
{BLOG.TITLE}