syntax higlighting

This commit is contained in:
Jacky Zhao
2023-06-01 19:05:14 -04:00
parent 9c836a87f1
commit 12fb746f09
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>
}