From f5c1ce115fe375e4ae7b9b457428b9e1afd74c8c Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 8 Sep 2024 00:59:39 +0300 Subject: [PATCH] Revert "update Tags" This reverts commit 7438fca3635ff048f6c427d603407144437fe207. --- quartz/components/TagList.tsx | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx index 7c0f619fa..ba48098bd 100644 --- a/quartz/components/TagList.tsx +++ b/quartz/components/TagList.tsx @@ -4,27 +4,25 @@ import { classNames } from "../util/lang" const TagList: QuartzComponent = ({ fileData, displayClass }: QuartzComponentProps) => { const tags = fileData.frontmatter?.tags - const enableTags = fileData.frontmatter?.enableTags ?? true const baseDir = pathToRoot(fileData.slug!) - - if (enableTags === false || !tags || tags.length === 0) { + if (tags && tags.length > 0) { + return ( + + ) + } else { return null } - - return ( - - ) } TagList.css = `