mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 23:08:14 +00:00
syntax higlighting
This commit is contained in:
parent
42d3a7de17
commit
04eeb2d10c
11 changed files with 198 additions and 44 deletions
quartz/components
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>
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue