We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 662db4f + 72294f1 commit 4328f16Copy full SHA for 4328f16
components/blog/Header.vue
@@ -43,9 +43,12 @@ withDefaults(defineProps<Props>(), {
43
<div class="flex items-center gap-2 flex-wrap my-5">
44
<LogoTag />
45
<template v-for="tag in tags" :key="tag">
46
- <span class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 font-semibold">{{
47
- tag
48
- }}</span>
+ <NuxtLink :to="`/categories/${tag.toLocaleLowerCase()}`">
+ <span
+ class="bg-gray-200 dark:bg-slate-900 rounded-md px-2 py-1 font-semibold hover:bg-gray-300 dark:hover:bg-slate-800 transition-colors duration-200"
49
+ >{{ tag }}</span
50
+ >
51
+ </NuxtLink>
52
</template>
53
</div>
54
0 commit comments