Add tags to guide/

This commit is contained in:
2024-03-17 16:51:12 +01:00
parent f16e340fd2
commit 13b0c03e5f
9 changed files with 170 additions and 11 deletions
+13
View File
@@ -0,0 +1,13 @@
---
const { id, title, tags, description } = Astro.props
---
<div class="article">
<div class="title">
<a href={`/guide/${id}`}>{title}</a>
</div>
<div class="description">{description}</div>
<div class="tags">
{tags.map(tag => <a href={`/guide/tags/${tag}`}>#{tag}</a>)}
</div>
</div>