Possibly fixes #307
parent
bd4e38fd4e
commit
380e3d3904
|
@ -27,7 +27,7 @@ export function extractFrontmatter(
|
|||
if (!data.tags) {
|
||||
data.tags = [];
|
||||
}
|
||||
if (!data.tags.includes(tagname)) {
|
||||
if (Array.isArray(data.tags) && !data.tags.includes(tagname)) {
|
||||
data.tags.push(tagname);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue