syntax higlighting

This commit is contained in:
Jacky Zhao 2023-06-01 19:05:14 -04:00
parent 42d3a7de17
commit 04eeb2d10c
11 changed files with 198 additions and 44 deletions
quartz/components

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