syntax higlighting
This commit is contained in:
14
quartz/components/Header.tsx
Normal file
14
quartz/components/Header.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import { resolveToRoot } from "../path"
|
||||
|
||||
export interface HeaderProps {
|
||||
title: string
|
||||
slug: string
|
||||
}
|
||||
|
||||
export default function({ title, slug }: HeaderProps) {
|
||||
const baseDir = resolveToRoot(slug)
|
||||
return <header>
|
||||
<h1><a href={baseDir}>{title}</a></h1>
|
||||
</header>
|
||||
|
||||
}
|
Reference in New Issue
Block a user