Skip to content

Commit 9d7a20b

Browse files
committed
chore: tweaks
1 parent fcaee80 commit 9d7a20b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/prepare.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ async function genRoutesFile ({ siteData: { pages }, sourceDir, pageFiles }) {
342342
component: ThemeNotFound
343343
}`
344344

345-
const injectRootMixin = await fs.readFile(path.resolve(__dirname, 'code/injectRootMixins.js'), 'utf-8')
345+
const injectRootMixins = await fs.readFile(path.resolve(__dirname, 'code/injectRootMixins.js'), 'utf-8')
346346

347347
return (
348348
`import ThemeLayout from '@themeLayout'\n` +
349349
`import ThemeNotFound from '@themeNotFound'\n\n` +
350-
`${injectRootMixin}\n` +
350+
`${injectRootMixins}\n` +
351351
`injectRootMixins(ThemeLayout)\n` +
352352
`injectRootMixins(ThemeNotFound)\n\n` +
353353
`export const routes = [${pages.map(genRoute).join(',')}${notFoundRoute}\n]`

0 commit comments

Comments
 (0)