Update posts by tag, fix ul styling

This commit is contained in:
Cassidy Williams committed 2023-01-26 23:40:45 -06:00
1 parent a9097ab84f
commit 77d762b196
8 files changed
+59 -36

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ let posts = allPosts
---
<content>
<ul>
<ul class="posts-list">
{
posts.map(
({
+18
View File
@@ -0,0 +1,18 @@
---
const { tags } = Astro.props;
---
<h3>View posts by tag</h3>
<p>
{
tags &&
tags.map((tag) => (
<>
<a class="tag" href={`/tag/${tag}`}>
#{tag}
</a>
{` `}
</>
))
}
</p>