mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
9 lines
303 B
TypeScript
9 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>
|
|
}
|