From 974b0da3086d21aabf5ef1a3eefa50675c0d4e95 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 05 Jul 2023 01:02:59 +0000
Subject: [PATCH] folder and tag descriptions, re-enable relative pathing

---
 quartz/plugins/transformers/description.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/quartz/plugins/transformers/description.ts b/quartz/plugins/transformers/description.ts
index cc20769..3505b19 100644
--- a/quartz/plugins/transformers/description.ts
+++ b/quartz/plugins/transformers/description.ts
@@ -31,7 +31,9 @@
             let sentenceIdx = 0
             const len = opts.descriptionLength
             while (finalDesc.length < len) {
-              finalDesc += sentences[sentenceIdx] + '.'
+              const sentence = sentences[sentenceIdx]
+              if (!sentence) break
+              finalDesc += sentence + '.'
               sentenceIdx++
             }
 

--
Gitblit v1.10.0