Jacky Zhao
2023-07-07 05d1ca01c39e18fa08776d4800e201abf8779f3c
quartz/plugins/emitters/tagPage.tsx
@@ -5,6 +5,7 @@
import { pageResources, renderPage } from "../../components/renderPage"
import { ProcessedContent, defaultProcessedContent } from "../vfile"
import { FullPageLayout } from "../../cfg"
import { clientSideSlug } from "../../path"
export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (opts) => {
  if (!opts) {
@@ -30,7 +31,7 @@
      ])))
      for (const [tree, file] of content) {
        const slug = file.data.slug!
        const slug = clientSideSlug(file.data.slug!)
        if (slug.startsWith("tags/")) {
          const tag = slug.slice("tags/".length)
          if (tags.has(tag)) {