mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
actually add processed tag to frontmatter
This commit is contained in:
parent
041a4ce7bc
commit
e82ba97a39
1 changed files with 4 additions and 0 deletions
|
@ -331,6 +331,10 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||||
const slug = canonicalizeServer(file.data.slug!)
|
const slug = canonicalizeServer(file.data.slug!)
|
||||||
const base = pathToRoot(slug)
|
const base = pathToRoot(slug)
|
||||||
findAndReplace(tree, tagRegex, (value: string, tag: string) => {
|
findAndReplace(tree, tagRegex, (value: string, tag: string) => {
|
||||||
|
if (file.data.frontmatter) {
|
||||||
|
file.data.frontmatter.tags.push(tag)
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: "link",
|
type: "link",
|
||||||
url: base + `/tags/${slugAnchor(tag)}`,
|
url: base + `/tags/${slugAnchor(tag)}`,
|
||||||
|
|
Loading…
Reference in a new issue