From cb89cce183215f6a8edcb6d166875e2982586002 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 17 Jun 2023 21:36:06 +0000
Subject: [PATCH] basic left,right layout
---
quartz/components/TagList.tsx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx
index a462e95..65286a5 100644
--- a/quartz/components/TagList.tsx
+++ b/quartz/components/TagList.tsx
@@ -6,7 +6,7 @@
const tags = fileData.frontmatter?.tags
const slug = fileData.slug!
const baseDir = resolveToRoot(slug)
- if (tags) {
+ if (tags && tags.length > 0) {
return <ul class="tags">{tags.map(tag => {
const display = `#${tag}`
const linkDest = baseDir + `/tags/${slugAnchor(tag)}`
--
Gitblit v1.10.0