mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-03 15:28:14 +00:00
folder and tag descriptions, re-enable relative pathing
This commit is contained in:
parent
2a17431460
commit
974b0da308
5 changed files with 12 additions and 6 deletions
quartz/components/pages
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue