Skip to content

Commit 549badb

Browse files
committed
remove legacy testing
1 parent 64e70d8 commit 549badb

File tree

6 files changed

+6
-3191
lines changed

6 files changed

+6
-3191
lines changed

gatsby-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports.createPages = ({ actions, graphql }) => {
3535
const { frontmatter } = node;
3636
const { part, lang } = frontmatter;
3737

38-
if (!frontmatter.letter) {
38+
if (part && !frontmatter.letter) {
3939
createPage({
4040
path:
4141
lang === 'fi'
@@ -47,7 +47,7 @@ exports.createPages = ({ actions, graphql }) => {
4747
lang: lang,
4848
},
4949
});
50-
} else if (navigation[lang] && !isEmpty(navigation[lang][part]) && frontmatter.letter) {
50+
} else if (part && navigation[lang] && !isEmpty(navigation[lang][part]) && frontmatter.letter) {
5151
createPage({
5252
path:
5353
lang === 'fi'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
],
5454
"license": "Creative Commons BY-NC-SA 3.0",
5555
"scripts": {
56+
"serve": "gatsby serve",
5657
"build": "gatsby build",
5758
"gatsby": "gatsby build",
5859
"develop": "gatsby develop",

0 commit comments

Comments
 (0)