mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-19 22:29:16 +00:00
fix: generalize frontmatter parsing and coercing
This commit is contained in:
parent
b211d49922
commit
42ee069c1c
5 changed files with 90 additions and 70 deletions
quartz/plugins/transformers
|
@ -318,7 +318,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
|||
}
|
||||
|
||||
tag = slugTag(tag)
|
||||
if (file.data.frontmatter && !file.data.frontmatter.tags.includes(tag)) {
|
||||
if (file.data.frontmatter?.tags?.includes(tag)) {
|
||||
file.data.frontmatter.tags.push(tag)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue