folder and tag descriptions, re-enable relative pathing

This commit is contained in:
Jacky Zhao
2023-07-04 18:02:59 -07:00
parent 2a17431460
commit 974b0da308
5 changed files with 12 additions and 6 deletions

View File

@ -31,7 +31,9 @@ export const Description: QuartzTransformerPlugin<Partial<Options> | undefined>
let sentenceIdx = 0
const len = opts.descriptionLength
while (finalDesc.length < len) {
finalDesc += sentences[sentenceIdx] + '.'
const sentence = sentences[sentenceIdx]
if (!sentence) break
finalDesc += sentence + '.'
sentenceIdx++
}