Add tags to frontmatter

This commit is contained in:
Peaceultime 2024-01-08 22:01:10 +01:00
parent f67e11bb76
commit 8c41ac4f47
1 changed files with 3 additions and 0 deletions

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",