From 410fc9c8d37b0c4118c70678db5d2e55a842f486 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 20 Jul 2023 04:59:39 +0000
Subject: [PATCH] quartz update and quartz sync
---
quartz/components/TagList.tsx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx
index 366889b..54147db 100644
--- a/quartz/components/TagList.tsx
+++ b/quartz/components/TagList.tsx
@@ -1,11 +1,11 @@
-import { resolveToRoot } from "../path"
+import { canonicalizeServer, pathToRoot } from "../path"
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
import { slug as slugAnchor } from 'github-slugger'
function TagList({ fileData }: QuartzComponentProps) {
const tags = fileData.frontmatter?.tags
- const slug = fileData.slug!
- const baseDir = resolveToRoot(slug)
+ const slug = canonicalizeServer(fileData.slug!)
+ const baseDir = pathToRoot(slug)
if (tags && tags.length > 0) {
return <ul class="tags">{tags.map(tag => {
const display = `#${tag}`
@@ -29,6 +29,7 @@
.tags > li {
display: inline-block;
+ white-space: nowrap;
margin: 0;
overflow-wrap: normal;
}
--
Gitblit v1.10.0