feat: make archive page dynamic (#469)

This commit is contained in:
saica.go authored and GitHub committed 2025-05-30 00:21:07 +08:00
1 parent c5d95736ac
commit 2d89e4d53f
12 files changed
+172 -201

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ const style = Astro.props.style;
>
{categories.map((c) =>
<ButtonLink
url={getCategoryUrl(c.name.trim())}
url={getCategoryUrl(c.name)}
badge={String(c.count)}
label={`View all posts in the ${c.name.trim()} category`}
>
+1 -1
View File
@@ -23,7 +23,7 @@ const style = Astro.props.style;
<WidgetLayout name={i18n(I18nKey.tags)} id="tags" isCollapsed={isCollapsed} collapsedHeight={COLLAPSED_HEIGHT} class={className} style={style}>
<div class="flex gap-2 flex-wrap">
{tags.map(t => (
<ButtonTag href={getTagUrl(t.name.trim())} label={`View all posts with the ${t.name.trim()} tag`}>
<ButtonTag href={getTagUrl(t.name)} label={`View all posts with the ${t.name.trim()} tag`}>
{t.name.trim()}
</ButtonTag>
))}