Skip to content

Commit

Permalink
fix: Syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
riceball-tw committed Jun 15, 2024
1 parent a4dd149 commit 4acb196
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/post/TagsList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ const { tags, tagHrefs } = Astro.props;
tagHrefs ? tagHrefs.map((href, index) => (
<li data-cy="tag">
<a data-cy="tag-link" data-astro-prefetch class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100" {href}>
<a data-astro-prefetch class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100" {href}>
<span>#</span> <span data-pagefind-filter="tag">{tags[index]}</span>
</a>
</li>
)) : tags.map((tag) => (
)) : tags.map((tag) => (
<li data-cy="tag">
<span class="p-1.5 inline-block capitalize opacity-60 hover:opacity-100">
<span>#</span> <span data-pagefind-filter="tag">{tag}</span>
Expand Down

0 comments on commit 4acb196

Please sign in to comment.