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