keroosha.cybergulag.today/quartz/components/PageTitle.tsx
2023-06-07 22:27:32 -07:00

10 lines
303 B
TypeScript

import { resolveToRoot } from "../path"
import { QuartzComponentProps } from "./types"
export default function({ cfg, fileData }: QuartzComponentProps) {
const title = cfg.siteTitle
const slug = fileData.slug!
const baseDir = resolveToRoot(slug)
return <h1><a href={baseDir}>{title}</a></h1>
}