Skip to content

Commit ff651ae

Browse files
committed
Another attempt
1 parent 1b6ad56 commit ff651ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gatsby-node.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ exports.createPages = async ({ graphql, actions }) => {
148148
const { category: definedCategory, next: definedNextPageUrl } = frontmatter
149149
let category = definedCategory || folder
150150
if (!currentCategory || category !== currentCategory.name) {
151+
if (currentCategory) {
152+
categories.push(currentCategory);
153+
}
151154
currentCategory = {
152155
name: category,
153156
links: [],

0 commit comments

Comments
 (0)