finish path refactoring, add sourcemap + better trace support

This commit is contained in:
Jacky Zhao committed 2023-07-15 23:02:12 -07:00
1 parent 906f91f8ee
commit 3ac6b42e16
36 files changed
+331 -1170

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
import { pathToRoot } from "../path"
import { canonicalizeServer, pathToRoot } from "../path"
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
function PageTitle({ fileData, cfg }: QuartzComponentProps) {
const title = cfg?.pageTitle ?? "Untitled Quartz"
const slug = fileData.slug!
const slug = canonicalizeServer(fileData.slug!)
const baseDir = pathToRoot(slug)
return <h1 class="page-title"><a href={baseDir}>{title}</a></h1>
}