fix: show correct featured works
This commit is contained in:
parent
69874b977c
commit
2ad9e41c8b
@ -22,7 +22,10 @@ const descText =
|
|||||||
class="break-words max-w-full rounded-lg p-4 shadow-md border border-2 border-gray-300 dark:border-gray-600"
|
class="break-words max-w-full rounded-lg p-4 shadow-md border border-2 border-gray-300 dark:border-gray-600"
|
||||||
>
|
>
|
||||||
<h3 class="m-0 flex items-center gap-1.5">
|
<h3 class="m-0 flex items-center gap-1.5">
|
||||||
<a :href="`/tags/${props.type}/featured`" v-if="highlighttags?.includes('featured')">
|
<a
|
||||||
|
:href="`/tags/${props.type}/featured`"
|
||||||
|
v-if="post.tags.includes('featured')"
|
||||||
|
>
|
||||||
<IconStar class="fill-yellow-500 outline-none" />
|
<IconStar class="fill-yellow-500 outline-none" />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
@ -35,12 +38,12 @@ const descText =
|
|||||||
<p class="my-1 text-sm"><Date :doc="post" /> · {{ descText }}</p>
|
<p class="my-1 text-sm"><Date :doc="post" /> · {{ descText }}</p>
|
||||||
<div class="flex flex-wrap">
|
<div class="flex flex-wrap">
|
||||||
<template v-for="(tag, index) in post.tags" :key="index">
|
<template v-for="(tag, index) in post.tags" :key="index">
|
||||||
<Tag
|
<Tag
|
||||||
:dest="`/tags/${type}/${tag}`"
|
:dest="`/tags/${type}/${tag}`"
|
||||||
:name="tag"
|
:name="tag"
|
||||||
:highlight="highlighttags?.includes(tag)"
|
:highlight="highlighttags?.includes(tag)"
|
||||||
v-if="!SpecialTags.includes(tag)"
|
v-if="!SpecialTags.includes(tag)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<ContentRenderer :value="post" :excerpt="true" tag="section">
|
<ContentRenderer :value="post" :excerpt="true" tag="section">
|
||||||
|
Loading…
Reference in New Issue
Block a user