Skip to content

Commit

Permalink
Update normalize-frontmatter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Mar 24, 2024
1 parent b461b6b commit 76d1eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/normalize-frontmatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function(pageData, {
}

// prefer authors be an array
if (!pageData.frontmatter.authors) pageData.frontmatter.authors = []
if (!pageData.frontmatter.authors) pageData.frontmatter.authors = [];
if (pageData.frontmatter.authors && !Array.isArray(pageData.frontmatter.authors)) {
pageData.frontmatter.authors = [pageData.frontmatter.authors];
}
Expand Down

0 comments on commit 76d1eb3

Please sign in to comment.