Add tags to frontmatter
This commit is contained in:
parent
f67e11bb76
commit
8c41ac4f47
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue