Skip to content

Commit b19e2ea

Browse files
committed
Menus
1 parent 6cdeb16 commit b19e2ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/scripts/build.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function build() {
181181
const mdContent = await fs.readFile(mdPath, 'utf-8');
182182
const content = mdContent.toString();
183183
const isDocs = mdPath.indexOf('/docs') !== -1;
184-
const isBlog = mdPath.indexOf('/blog') !== -1;
184+
isBlog = mdPath.indexOf('/blog') !== -1;
185185
let mobileDocsMenu = '';
186186
let mobileBlogMenu = '';
187187

@@ -192,10 +192,10 @@ async function build() {
192192
versionsMenu = await buildVersionMenu(uniqueVersions, version);
193193
}
194194
if (isDocs) {
195-
mobileDocsMenu = blogMenu;
195+
mobileDocsMenu = docsMenu;
196196
}
197197
if (isBlog) {
198-
mobileBlogMenu = docsMenu;
198+
mobileBlogMenu = blogMenu;
199199
}
200200
htmlFileName = mdPath.replace(docsDir, '').replace(/\.md$/i, '.html');
201201
const htmlFilePath = path.join(resultDir, htmlFileName);

0 commit comments

Comments
 (0)