<nuxt-link :to="{name: 'blog', query: {tag: tag.id}}" v-for="(tag, i) in tags" :key="i">{{ tag.name }}</nuxt-link>
async asyncData({$axios, query}) {
const posts = await $axios.$get('/api/blog', {
params: {
tag: query.tag,
}
})
return {
posts: posts.data,
}
},