This is the project you get when you run gridsome create new-project.
This repo was created to illustrate an issue as described in this Issue on GitHub.
- Clone and install dependencies
- Run with
npm run develop - Check out the site, the
/has a light nav,/about/and/example/have a dark nav - Cancel the dev server and run
npm run build - Serve the
dist/folder withpython3 -m http.server --directory dist/or a similar lokal server - Check out the site,
/has a dark nav, even though it shouldn’t. Once another route was navigated to, everything returns to order. - Check the generated
index.htmlindist/and see that the nav-Element indeed has the "dark" class applied
The generated pages have the same Markup as in development, i.e. the "dark"
class is only present on pages with "dark": true in their respective JSON-File.