Add tags to frontmatter

This commit is contained in:
2024-01-08 22:01:10 +01:00
parent f67e11bb76
commit 8c41ac4f47

View File

@@ -179,6 +179,9 @@ export default function ofm() {
}
tag = slugTag(tag)
if (file.data.frontmatter && !file.data.frontmatter.tags.includes(tag)) {
file.data.frontmatter.tags.push(tag)
}
return {
type: "link",