diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-29 12:22:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 12:22:09 +0100 |
commit | 3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d (patch) | |
tree | 8f9140f2326df571a6990df6e9cbd1525f19e374 /components/Posts/PostLink.vue | |
parent | 3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff) | |
parent | 0a8355312990db95de3aa4e946b907ed0abf5a12 (diff) | |
download | puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.tar.gz puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.zip |
Merge pull request #26 from 19pdh/feature/json-api
Feature/json api
Diffstat (limited to 'components/Posts/PostLink.vue')
-rw-r--r-- | components/Posts/PostLink.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/Posts/PostLink.vue b/components/Posts/PostLink.vue index 3f80bae..b7bfab4 100644 --- a/components/Posts/PostLink.vue +++ b/components/Posts/PostLink.vue @@ -1,6 +1,6 @@ <template> <div class="post-link"> - <a :href="route"> + <nuxt-link :to="route" no-prefetch> <div> <div class="image" :style="`background-image: url('${image}')`" /> <div class="post-container"> @@ -8,7 +8,7 @@ <p class="post-description">{{ shortenedDescription }}...</p> </div> </div> - </a> + </nuxt-link> </div> </template> @@ -31,7 +31,7 @@ export default { image: { type: String, required: false, - default: () => '/assets/og/default.jpg', + default: '/assets/og/default.jpg', }, }, computed: { |