Update posts by tag, fix ul styling
This commit is contained in:
@@ -16,7 +16,7 @@ let posts = allPosts
|
||||
---
|
||||
|
||||
<content>
|
||||
<ul>
|
||||
<ul class="posts-list">
|
||||
{
|
||||
posts.map(
|
||||
({
|
||||
|
||||
18
src/components/Tags.astro
Normal file
18
src/components/Tags.astro
Normal 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>
|
||||
Reference in New Issue
Block a user