Skip to content

Commit cb98d8a

Browse files
authored
Update PostMeta.astro
1 parent dba45c2 commit cb98d8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/PostMeta.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const className = Astro.props.class
5151
<Icon name="material-symbols:book-2-outline-rounded" class="text-xl"></Icon>
5252
</div>
5353
<div class="flex flex-row flex-nowrap items-center">
54-
<a href={url(`/archive/category/${category || 'uncategorized'}/`)} aria-label=`View all posts in the ${category} category`
54+
<a href={url(`/archive/category/${encodeURIComponent(category || 'uncategorized')}/`)} aria-label=`View all posts in the ${category} category`
5555
class="link-lg transition text-50 text-sm font-medium
5656
hover:text-[var(--primary)] dark:hover:text-[var(--primary)] whitespace-nowrap">
5757
{category || '未分类'}
@@ -77,4 +77,4 @@ const className = Astro.props.class
7777
{!(tags && tags.length > 0) && <div class="transition text-50 text-sm font-medium">无标签</div>}
7878
</div>
7979
</div>
80-
</div>
80+
</div>

0 commit comments

Comments
 (0)