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
quartz/components/pages

View file

@ -23,9 +23,12 @@ function FolderContent(props: QuartzComponentProps) {
allFiles: allPagesInFolder
}
const desc = props.fileData.description
// @ts-ignore
const content = toJsxRuntime(tree, { Fragment, jsx, jsxs, elementAttributeNameCase: 'html' })
return <div class="popover-hint">
{desc && <p>{desc}</p>}
<article>{content}</article>
<p>{allPagesInFolder.length} items under this folder.</p>
<div>

View file

@ -17,9 +17,12 @@ function TagContent(props: QuartzComponentProps) {
allFiles: allPagesWithTag
}
const desc = props.fileData.description
// @ts-ignore
const content = toJsxRuntime(tree, { Fragment, jsx, jsxs, elementAttributeNameCase: 'html' })
return <div class="popover-hint">
{desc && <p>{desc}</p>}
<article>{content}</article>
<p>{allPagesWithTag.length} items with this tag.</p>
<div>