From 95eec5b49db53801e23b4b47778cb0b6153db83f Mon Sep 17 00:00:00 2001
From: Chad Lee <git@chadly.net>
Date: Sun, 24 Sep 2023 17:27:42 +0000
Subject: [PATCH] add site to showcase (#504)
---
quartz/components/PageTitle.tsx | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/quartz/components/PageTitle.tsx b/quartz/components/PageTitle.tsx
index f6319ef..c327547 100644
--- a/quartz/components/PageTitle.tsx
+++ b/quartz/components/PageTitle.tsx
@@ -1,10 +1,9 @@
-import { canonicalizeServer, pathToRoot } from "../path"
+import { pathToRoot } from "../util/path"
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
function PageTitle({ fileData, cfg }: QuartzComponentProps) {
const title = cfg?.pageTitle ?? "Untitled Quartz"
- const slug = canonicalizeServer(fileData.slug!)
- const baseDir = pathToRoot(slug)
+ const baseDir = pathToRoot(fileData.slug!)
return (
<h1 class="page-title">
<a href={baseDir}>{title}</a>
--
Gitblit v1.10.0