feat: separate tags with and without spaces

with spaces are non-clickable
This commit is contained in:
eggy
2023-05-24 12:46:44 -04:00
parent 4502c819c3
commit 74f7bc1002
6 changed files with 26 additions and 23 deletions

View File

@@ -37,9 +37,8 @@ const captionText =
v-for="(tag, index) in doc.tags"
:dest="`/tags/${type}/${tag}`"
:key="index"
>
{{ tag }}
</Tag>
:name="tag"
/>
</div>
<ContentRenderer :value="doc" tag="article" class="pt-0 w-full">
<template #empty>

View File

@@ -30,9 +30,8 @@ const tags = new Set(
:dest="`/tags/blog/${tag}`"
v-for="(tag, index) in tags"
:key="index"
>
{{ tag }}
</Tag>
:name="tag"
/>
</div>
<PostPreviewCard
v-for="(post, index) in docs"

View File

@@ -30,9 +30,8 @@ const tags = new Set(
:dest="`/tags/stories/${tag}`"
v-for="(tag, index) in tags"
:key="index"
>
{{ tag }}
</Tag>
:name="tag"
/>
</div>
<PostPreviewCard
v-for="(story, index) in docs"