mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-15 09:43:39 +00:00
tag and folder pages
This commit is contained in:
parent
24348b24a9
commit
ba9f243728
25 changed files with 586 additions and 123 deletions
quartz/components/pages
11
quartz/components/pages/Content.tsx
Normal file
11
quartz/components/pages/Content.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
|
||||
import { Fragment, jsx, jsxs } from 'preact/jsx-runtime'
|
||||
import { toJsxRuntime } from "hast-util-to-jsx-runtime"
|
||||
|
||||
function Content({ tree }: QuartzComponentProps) {
|
||||
// @ts-ignore (preact makes it angry)
|
||||
const content = toJsxRuntime(tree, { Fragment, jsx, jsxs, elementAttributeNameCase: 'html' })
|
||||
return <article>{content}</article>
|
||||
}
|
||||
|
||||
export default (() => Content) satisfies QuartzComponentConstructor
|
Loading…
Add table
Add a link
Reference in a new issue