From 59109a8c1d505f516d50d6b7f88cfe070bc1ca84 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 08 Jun 2023 05:38:45 +0000
Subject: [PATCH] add flamethrower router
---
quartz/components/Header.tsx | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/quartz/components/Header.tsx b/quartz/components/Header.tsx
index 7da4a8e..8eb2d70 100644
--- a/quartz/components/Header.tsx
+++ b/quartz/components/Header.tsx
@@ -1,14 +1,10 @@
-import { resolveToRoot } from "../path"
+import style from './styles/header.scss'
+import { QuartzComponentProps } from "./types"
-export interface HeaderProps {
- title: string
- slug: string
-}
-
-export default function({ title, slug }: HeaderProps) {
- const baseDir = resolveToRoot(slug)
+export default function Header({ children }: QuartzComponentProps) {
return <header>
- <h1><a href={baseDir}>{title}</a></h1>
+ {children}
</header>
-
}
+
+Header.css = style
--
Gitblit v1.10.0