diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index 36e79b0..9840ea8 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -331,6 +331,10 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin const slug = canonicalizeServer(file.data.slug!) const base = pathToRoot(slug) findAndReplace(tree, tagRegex, (value: string, tag: string) => { + if (file.data.frontmatter) { + file.data.frontmatter.tags.push(tag) + } + return { type: "link", url: base + `/tags/${slugAnchor(tag)}`,