diff --git a/src/components/Tags.astro b/src/components/Tags.astro index b29462a..ea6bf19 100644 --- a/src/components/Tags.astro +++ b/src/components/Tags.astro @@ -3,7 +3,7 @@ const { tags, all } = Astro.props; --- {all &&

View posts by tag

} -
+
{ tags && tags.map((tag) => ( diff --git a/src/style/global.css b/src/style/global.css index d3d1d2e..d7c9d17 100644 --- a/src/style/global.css +++ b/src/style/global.css @@ -146,6 +146,11 @@ ul.tags-list { font-size: 1.3em; } +.tags { + display: flex; + flex-wrap: wrap; + justify-content: center; +} .tag { display: inline-block; margin-right: 20px;