We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.11.5
<div class="nav-link" :key="index" v-for="(item, index) in $themeConfig.nav"> <saber-link :key="index" :to="item.path" v-text="item.text"></saber-link> </div>
in saber-config.yml:
themeConfig: nav: - text: Posts path: /posts # or '/posts'
dev mode: http://localhost:3000/posts will be routed to 404 page.
dev
if I change it to
themeConfig: nav: - text: Posts path: /posts.html
dev mode will work, build mode will cause 'saber-plugin-query-posts' build error in pagination 'posts/page/2'.
build
but in saber-config.js:
themeConfig: { nav: [{ text: 'Posts', path: '/posts' }] }
all works.
So I think something wrong has happend in yaml converting to js process.
saber-config.yml should perform same as saber-config.js
saber-config. js works well while saber-config.yml cause url error.
saber -v
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Version
0.11.5
Steps to reproduce
in saber-config.yml:
dev
mode: http://localhost:3000/posts will be routed to 404 page.if I change it to
dev
mode will work,build
mode will cause 'saber-plugin-query-posts' build error in pagination 'posts/page/2'.but in saber-config.js:
all works.
So I think something wrong has happend in yaml converting to js process.
What is expected?
saber-config.yml should perform same as saber-config.js
What is actually happening?
saber-config. js works well while saber-config.yml cause url error.
Other relevant information
saber -v
: cli.js/0.11.5 win32-x64 node-v10.15.0The text was updated successfully, but these errors were encountered: