Skip to content

Commit

Permalink
fix(build): duplicate nav menu
Browse files Browse the repository at this point in the history
fix issue introduced in #522

The ordering of the plugins requires localization to run before tutorials.
  • Loading branch information
epreston committed Sep 28, 2023
1 parent 9bb6e98 commit 0d59c96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ Metalsmith(__dirname)
renderer: renderer
}))
.use(contents())
.use(tutorials('tutorials')())
.use(permalinks({
duplicates: 'error'
}))
.use(i18n()({
locales: [{
file: 'content/ja/messages.json', locale: 'ja'
Expand All @@ -163,6 +159,10 @@ Metalsmith(__dirname)
contentPath: 'content/_shadereditor_contents.json',
partialName: 'shader-editor-navigation'
}))
.use(tutorials('tutorials')())
.use(permalinks({
duplicates: 'error'
}))
.use(layouts({
pattern: '**/*.html'
}))
Expand Down

0 comments on commit 0d59c96

Please sign in to comment.