From 539b928a68760f9efc508a0282e341aefb0af9a0 Mon Sep 17 00:00:00 2001 From: Alexey Chernyavskiy Date: Sun, 20 Jul 2025 12:22:42 +0500 Subject: [PATCH] feat(RecentNotes): add showDescription option to display note descriptions --- quartz/components/RecentNotes.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx index 2c32feadf..6a586e1fc 100644 --- a/quartz/components/RecentNotes.tsx +++ b/quartz/components/RecentNotes.tsx @@ -13,6 +13,7 @@ interface Options { limit: number linkToMore: SimpleSlug | false showTags: boolean + showDescription: boolean filter: (f: QuartzPluginData) => boolean sort: (f1: QuartzPluginData, f2: QuartzPluginData) => number } @@ -21,6 +22,7 @@ const defaultOptions = (cfg: GlobalConfiguration): Options => ({ limit: 3, linkToMore: false, showTags: true, + showDescription: false, filter: () => true, sort: byDateAndAlphabetical(cfg), }) @@ -72,6 +74,12 @@ export default ((userOpts?: Partial) => { ))} )} + + {opts.showDescription && page.frontmatter?.description && ( +

+ {page.frontmatter.description} +

+ )} )