Jacky Zhao
2023-08-14 7bde99b4e2d49e30dad1e0d58ccc34c2e7482005
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,11 +44,14 @@
            return (
              <div>
                <h2>
                  <a class="internal tag-link" href={`./tags/${tag}`}>
                  <a class="internal tag-link" href={`./${tag}`}>
                    #{tag}
                  </a>
                </h2>
                <p>{pages.length} items with this tag. {pages.length > numPages && `Showing first ${numPages}.`}</p>
                <p>
                  {pages.length} items with this tag.{" "}
                  {pages.length > numPages && `Showing first ${numPages}.`}
                </p>
                <PageList limit={numPages} {...listProps} />
              </div>
            )