This commit is contained in:
Michael Freno
2025-12-23 09:35:55 -05:00
parent be3e9a9e0b
commit 2ebd7840b7
8 changed files with 235 additions and 140 deletions

View File

@@ -77,6 +77,7 @@ export default function BlogIndex() {
const sort = () => searchParams.sort || "newest";
const filters = () => searchParams.filter || "";
const include = () => searchParams.include || "";
const data = createAsync(() => getPosts(), { deferStream: true });
@@ -84,7 +85,7 @@ export default function BlogIndex() {
<>
<Title>Blog | Michael Freno</Title>
<div class="mx-auto pt-8 pb-24">
<div class="mx-auto py-16 pb-24">
<Show when={data()} fallback={<TerminalSplash />}>
{(loadedData) => (
<>
@@ -118,6 +119,7 @@ export default function BlogIndex() {
privilegeLevel={loadedData().privilegeLevel}
filters={filters()}
sort={sort()}
include={include()}
/>
</div>
</Show>