Skip to content

Commit

Permalink
fix: fix tags component
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 27, 2023
1 parent 71f8e47 commit 49edc0f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/_components/tags.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export default ({ tags }: Lume.Data, { url }: Lume.Helpers) =>
tags.map(tag => (
<a class="p-category" href={url(`/t/${encodeURIComponent(tag)}`)}>
#{tag}
</a>
))
export default ({ tags }: Lume.Data, { url }: Lume.Helpers) => (
<>
{tags.map(tag => (
<a class="p-category" href={url(`/t/${encodeURIComponent(tag)}`)}>
#{tag}
</a>
))}
</>
)

0 comments on commit 49edc0f

Please sign in to comment.