feat: show Evergreen index
All checks were successful
deploy / build (push) Successful in 13m50s

This commit is contained in:
rizaldy 2024-03-09 16:44:24 +07:00
parent eece2926cc
commit 7fed4dbcdd

View File

@ -28,10 +28,18 @@ export const defaultContentPageLayout: PageLayout = {
linkToMore: "/tags/blog" as SimpleSlug,
}),
),
Component.DesktopOnly(
Component.RecentNotes({
title: "🌲 Evergreen",
limit: 2,
filter: f => f.frontmatter?.tags?.includes('evergreen') && !['now', 'contact', 'uses'].includes(f.slug),
linkToMore: "/tags/evergreen" as SimpleSlug,
}),
),
Component.DesktopOnly(
Component.RecentNotes({
title: "ls -al /var/log/public",
limit: 3,
limit: 1,
filter: f => f.slug!.startsWith("log/") && f.slug! !== "log/index" && !f.frontmatter?.noindex,
linkToMore: "/tags/log" as SimpleSlug,
}),