mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	actually add processed tag to frontmatter
This commit is contained in:
		@@ -331,6 +331,10 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
 | 
			
		||||
            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)}`,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user