Add tags to frontmatter

This commit is contained in:
peaceultime committed 2024-01-08 22:01:10 +01:00
1 parent f67e11bb76
commit 8c41ac4f47
1 file changed
+3
+3
View File
@@ -179,6 +179,9 @@ export default function ofm() {
} }
tag = slugTag(tag) tag = slugTag(tag)
if (file.data.frontmatter && !file.data.frontmatter.tags.includes(tag)) {
file.data.frontmatter.tags.push(tag)
}
return { return {
type: "link", type: "link",