AetheriaLore/quartz-site/quartz/components/pages/Content.tsx
Meta Vens 6127440e57 Static Wiki Site via Quartz
Included the static site generator Quartz and customized it to generate a wiki using the contents of the Obsidian Vault
2026-04-19 09:47:46 +01:00

12 lines
593 B
TypeScript

import { ComponentChildren } from "preact"
import { htmlToJsx } from "../../util/jsx"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
const Content: QuartzComponent = ({ fileData, tree }: QuartzComponentProps) => {
const content = htmlToJsx(fileData.filePath!, tree) as ComponentChildren
const classes: string[] = fileData.frontmatter?.cssclasses ?? []
const classString = ["popover-hint", ...classes].join(" ")
return <article class={classString}>{content}</article>
}
export default (() => Content) satisfies QuartzComponentConstructor