File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments