mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-23 16:19:00 +00:00
inline scripts
This commit is contained in:
parent
fcd81353f8
commit
4bdc17d4a1
19 changed files with 187 additions and 69 deletions
quartz/components
|
@ -5,10 +5,10 @@ export interface HeaderProps {
|
|||
slug: string
|
||||
}
|
||||
|
||||
export default function({ title, slug }: HeaderProps) {
|
||||
export function Component({ 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