From bb93ac1c83fd8d13593f7f9688de02eba60de913 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 21 Aug 2023 06:50:29 +0000
Subject: [PATCH] docs: fix links to networked thought
---
quartz/components/TagList.tsx | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx
index 0bffb0d..639f68c 100644
--- a/quartz/components/TagList.tsx
+++ b/quartz/components/TagList.tsx
@@ -1,17 +1,15 @@
-import { canonicalizeServer, pathToRoot } from "../path"
+import { pathToRoot, slugTag } from "../util/path"
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
-import { slug as slugAnchor } from "github-slugger"
function TagList({ fileData }: QuartzComponentProps) {
const tags = fileData.frontmatter?.tags
- const slug = canonicalizeServer(fileData.slug!)
- const baseDir = pathToRoot(slug)
+ const baseDir = pathToRoot(fileData.slug!)
if (tags && tags.length > 0) {
return (
<ul class="tags">
{tags.map((tag) => {
const display = `#${tag}`
- const linkDest = baseDir + `/tags/${slugAnchor(tag)}`
+ const linkDest = baseDir + `/tags/${slugTag(tag)}`
return (
<li>
<a href={linkDest} class="internal tag-link">
--
Gitblit v1.10.0