From dad0ae4e3f08288d1d9b36daa37f983e248507d1 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 16 Sep 2024 23:55:42 +0000
Subject: [PATCH] chore(deps-dev): bump @types/node from 22.5.4 to 22.5.5 (#1420)
---
quartz/components/RecentNotes.tsx | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx
index d99878d..2c32fea 100644
--- a/quartz/components/RecentNotes.tsx
+++ b/quartz/components/RecentNotes.tsx
@@ -12,6 +12,7 @@
title?: string
limit: number
linkToMore: SimpleSlug | false
+ showTags: boolean
filter: (f: QuartzPluginData) => boolean
sort: (f1: QuartzPluginData, f2: QuartzPluginData) => number
}
@@ -19,6 +20,7 @@
const defaultOptions = (cfg: GlobalConfiguration): Options => ({
limit: 3,
linkToMore: false,
+ showTags: true,
filter: () => true,
sort: byDateAndAlphabetical(cfg),
})
@@ -56,18 +58,20 @@
<Date date={getDate(cfg, page)!} locale={cfg.locale} />
</p>
)}
- <ul class="tags">
- {tags.map((tag) => (
- <li>
- <a
- class="internal tag-link"
- href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)}
- >
- {tag}
- </a>
- </li>
- ))}
- </ul>
+ {opts.showTags && (
+ <ul class="tags">
+ {tags.map((tag) => (
+ <li>
+ <a
+ class="internal tag-link"
+ href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)}
+ >
+ {tag}
+ </a>
+ </li>
+ ))}
+ </ul>
+ )}
</div>
</li>
)
--
Gitblit v1.10.0