We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549badb commit 332b2aeCopy full SHA for 332b2ae
gatsby-node.js
@@ -35,7 +35,9 @@ exports.createPages = ({ actions, graphql }) => {
35
const { frontmatter } = node;
36
const { part, lang } = frontmatter;
37
38
- if (part && !frontmatter.letter) {
+ const legitPart = (part || part === '0' || part === 0)
39
+
40
+ if (legitPart && !frontmatter.letter) {
41
createPage({
42
path:
43
lang === 'fi'
@@ -47,7 +49,7 @@ exports.createPages = ({ actions, graphql }) => {
47
49
lang: lang,
48
50
},
51
});
- } else if (part && navigation[lang] && !isEmpty(navigation[lang][part]) && frontmatter.letter) {
52
+ } else if (legitPart && navigation[lang] && !isEmpty(navigation[lang][part]) && frontmatter.letter) {
53
54
55
0 commit comments