From d8d9dd22c9e81f344f3ab56f7262d804c2720fcd Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 07 Aug 2023 03:52:17 +0000
Subject: [PATCH] fix shortest path for non-md files, mobile fix
---
quartz/components/PageTitle.tsx | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/quartz/components/PageTitle.tsx b/quartz/components/PageTitle.tsx
index 00b2300..f6319ef 100644
--- a/quartz/components/PageTitle.tsx
+++ b/quartz/components/PageTitle.tsx
@@ -5,7 +5,11 @@
const title = cfg?.pageTitle ?? "Untitled Quartz"
const slug = canonicalizeServer(fileData.slug!)
const baseDir = pathToRoot(slug)
- return <h1 class="page-title"><a href={baseDir}>{title}</a></h1>
+ return (
+ <h1 class="page-title">
+ <a href={baseDir}>{title}</a>
+ </h1>
+ )
}
PageTitle.css = `
--
Gitblit v1.10.0