Skip to content

Commit

Permalink
fix: horizontal feature displaying tags incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 15, 2023
1 parent c207a16 commit 0c34591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ArticleCard/src/HorizontalArticle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
<ul>
<template v-if="post.tags && post.tags.length > 0">
<li
v-for="index in numberOfTags - 1"
:key="post.tags[index].slug"
v-for="index in numberOfTags"
:key="post.tags[index - 1].slug"
>
<em># </em><span>{{ post.tags[index].name }}</span>
<em># </em><span>{{ post.tags[index - 1].name }}</span>
</li>
</template>
<template v-else-if="post.tags && post.tags.length <= 0">
Expand Down

0 comments on commit 0c34591

Please sign in to comment.