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/NavLink.vue | |
parent | 61dfb8f8e6aa261c3743ef7315a5358cb8867ab9 (diff) | |
download | puszcza-5cbfdab567005a963ef3c4f1ee4f1412f9c0de47.tar.gz puszcza-5cbfdab567005a963ef3c4f1ee4f1412f9c0de47.zip |
Fix empty post list
Diffstat (limited to 'components/NavLink.vue')
-rw-r--r-- | components/NavLink.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/NavLink.vue b/components/NavLink.vue index 253dde9..6074db0 100644 --- a/components/NavLink.vue +++ b/components/NavLink.vue @@ -1,6 +1,7 @@ <template> <li class="navlink"> <a v-if="external" class="link" target="_blank" rel="”noopener”" :href="link">{{ name }}</a> + <a v-else-if="static" class="link" :href="link">{{ name }}</a> <nuxt-link v-else class="link" :to="link">{{ name }}</nuxt-link> </li> </template> @@ -10,7 +11,8 @@ export default { props: { link: String, name: String, - external: { type: Boolean, default: false } + external: { type: Boolean, default: false }, + static: { type: Boolean, default: false } } } </script> |