From 7fed4dbcdd8b95100c702741df0c4aacc4f60626 Mon Sep 17 00:00:00 2001 From: rizaldy Date: Sat, 9 Mar 2024 16:44:24 +0700 Subject: [PATCH] feat: show Evergreen index --- quartz.layout.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quartz.layout.ts b/quartz.layout.ts index 7dc6ed8..7a5342f 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -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, }),