refactor: 重写filter页面 更新为search

This commit is contained in:
2026-08-14 21:08:45 +08:00
parent 37d720ebc3
commit b3038603e8
10 changed files with 350 additions and 624 deletions

View File

@@ -23,7 +23,7 @@ const { data: tags } =
categories.map((category) => (
<li>
<a
href={`/filter?type=category&code=${encodeURIComponent(category.code)}`}
href={`/search?c=${encodeURIComponent(category.code)}`}
title={`${category.name} · ${category.post_count} 篇`}
>
{category.name}
@@ -45,7 +45,7 @@ const { data: tags } =
tags.map((tag) => (
<a
class="tag"
href={`/filter?type=tag&code=${encodeURIComponent(tag.code)}`}
href={`/search?t=${encodeURIComponent(tag.code)}`}
>
{tag.name}
</a>