mirror of https://github.com/Lissy93/dashy.git
⚡ Use page name for making nav-bar path slug
This commit is contained in:
parent
6bf0ecba34
commit
a9496391cd
|
@ -46,7 +46,7 @@ export default {
|
|||
/* Get links to sub-pages, and combine with nav-links */
|
||||
allLinks() {
|
||||
const subPages = this.$store.getters.pages.map((subPage) => ({
|
||||
path: makePageSlug(subPage.path, 'home'),
|
||||
path: makePageSlug(subPage.name, 'home'),
|
||||
title: subPage.name,
|
||||
}));
|
||||
const navLinks = this.links || [];
|
||||
|
|
Loading…
Reference in New Issue