syntax higlighting

This commit is contained in:
Jacky Zhao
2023-06-01 19:05:14 -04:00
parent 51e26ecb4e
commit 428833aeec
11 changed files with 198 additions and 44 deletions

View 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>
}