From 5dd1287255a53ac92477883259fe49b1b25414db Mon Sep 17 00:00:00 2001 From: saicaca Date: Fri, 7 Jun 2024 00:16:25 +0800 Subject: [PATCH] fix: fix a style bug in the tag list (#41, #93) --- src/components/PostMeta.astro | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/PostMeta.astro b/src/components/PostMeta.astro index cdeeec1..34ec1d0 100644 --- a/src/components/PostMeta.astro +++ b/src/components/PostMeta.astro @@ -32,12 +32,12 @@ const className = Astro.props.class; > -
-
+ {category || i18n(I18nKey.uncategorized)} -
+
@@ -47,16 +47,15 @@ const className = Astro.props.class; > -
- {(tags && tags.length > 0) && tags.map(tag =>
+
+ {(tags && tags.length > 0) && tags.map((tag, i) => ( +
/
{tag} -
)} + ))} {!(tags && tags.length > 0) &&
{i18n(I18nKey.noTags)}
}