From 232652149a287054df7e7c5136dafd3f55a79bf0 Mon Sep 17 00:00:00 2001
From: Sohaib <98542228+sohaibology@users.noreply.github.com>
Date: Tue, 15 Aug 2023 00:59:47 +0000
Subject: [PATCH] Update hosting.md (#371)

---
 quartz/components/pages/TagContent.tsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/components/pages/TagContent.tsx b/quartz/components/pages/TagContent.tsx
index 5300cce..5d30240 100644
--- a/quartz/components/pages/TagContent.tsx
+++ b/quartz/components/pages/TagContent.tsx
@@ -11,7 +11,7 @@
   const { tree, fileData, allFiles } = props
   const slug = fileData.slug
 
-  if (!slug?.startsWith("tags/")) {
+  if (!(slug?.startsWith("tags/") || slug === "tags")) {
     throw new Error(`Component "TagContent" tried to render a non-tag page: ${slug}`)
   }
 
@@ -44,7 +44,7 @@
             return (
               <div>
                 <h2>
-                  <a class="internal tag-link" href={`./tags/${tag}`}>
+                  <a class="internal tag-link" href={`./${tag}`}>
                     #{tag}
                   </a>
                 </h2>

--
Gitblit v1.10.0