From 37c6231e79d197f4d51db86e2760283f316ed191 Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Tue, 30 Jan 2024 05:51:13 +0000
Subject: [PATCH] fix(div): update class name to remove weird space afterwards (#763)
---
quartz/components/TagList.tsx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx
index b39b199..e5dd1a3 100644
--- a/quartz/components/TagList.tsx
+++ b/quartz/components/TagList.tsx
@@ -1,12 +1,13 @@
import { pathToRoot, slugTag } from "../util/path"
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
+import { classNames } from "../util/lang"
function TagList({ fileData, displayClass }: QuartzComponentProps) {
const tags = fileData.frontmatter?.tags
const baseDir = pathToRoot(fileData.slug!)
if (tags && tags.length > 0) {
return (
- <ul class={`tags ${displayClass ?? ""}`}>
+ <ul class={classNames(displayClass, "tags")}>
{tags.map((tag) => {
const display = `#${tag}`
const linkDest = baseDir + `/tags/${slugTag(tag)}`
--
Gitblit v1.10.0