diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-17 21:56:13 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-17 21:56:13 +0200 |
commit | 5cbfdab567005a963ef3c4f1ee4f1412f9c0de47 (patch) | |
tree | 637695cbd54494fe0f98a31f66c0f8ad6589a1a5 /components/NavBar.vue | |
parent | 61dfb8f8e6aa261c3743ef7315a5358cb8867ab9 (diff) | |
download | puszcza-5cbfdab567005a963ef3c4f1ee4f1412f9c0de47.tar.gz puszcza-5cbfdab567005a963ef3c4f1ee4f1412f9c0de47.zip |
Fix empty post list
Diffstat (limited to 'components/NavBar.vue')
-rw-r--r-- | components/NavBar.vue | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/components/NavBar.vue b/components/NavBar.vue index 2887464..4ffdf16 100644 --- a/components/NavBar.vue +++ b/components/NavBar.vue @@ -8,14 +8,21 @@ <button @click="toggleMenu" class="menu-toggler">Menu</button> <ul :class="linksClass" @click="toggleMenu"> <!-- Loop for generating links --> - <NavLink v-for="route in routes" :key="route.path" :link="route.path" :name="route.name"></NavLink> + <NavLink v-for="route in routes" :key="route.path" :link="route.path" :name="route.name" /> + <NavLink + v-for="route in staticRoutes" + :key="route.path" + :link="route.path" + :name="route.name" + static + /> <NavLink v-for="route in externalRoutes" :key="route.path" :link="route.path" :name="route.name" - :external="true" - ></NavLink> + external + /> </ul> </nav> </template> @@ -30,6 +37,7 @@ export default { props: { routes: Array, externalRoutes: Array, + staticRoutes: Array, title: String, logo: String }, |