From 52e6c037309a752741f79264afb3e83cd75feabc Mon Sep 17 00:00:00 2001
From: ikorihn <16367098+ikorihn@users.noreply.github.com>
Date: Sat, 13 Jan 2024 17:08:21 +0000
Subject: [PATCH] fix: broken RSS item's link, which were set to `https:/${base}`. (#687)

---
 quartz/components/RecentNotes.tsx |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx
index cb14b33..63f040d 100644
--- a/quartz/components/RecentNotes.tsx
+++ b/quartz/components/RecentNotes.tsx
@@ -23,13 +23,12 @@
 })
 
 export default ((userOpts?: Partial<Options>) => {
-  function RecentNotes(props: QuartzComponentProps) {
-    const { allFiles, fileData, displayClass, cfg } = props
+  function RecentNotes({ allFiles, fileData, displayClass, cfg }: QuartzComponentProps) {
     const opts = { ...defaultOptions(cfg), ...userOpts }
     const pages = allFiles.filter(opts.filter).sort(opts.sort)
     const remaining = Math.max(0, pages.length - opts.limit)
     return (
-      <div class={`recent-notes ${displayClass}`}>
+      <div class={`recent-notes ${displayClass ?? ""}`}>
         <h3>{opts.title}</h3>
         <ul class="recent-ul">
           {pages.slice(0, opts.limit).map((page) => {

--
Gitblit v1.10.0