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} +

+ )} )