summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-24 19:04:45 +0800
committerEltrac <hi@guhub.cn>2025-07-24 19:04:45 +0800
commit87827b73d161b68f002bab797365a1ed347ec5f2 (patch)
tree04203cb05cf4c56472f0b480441af7d90de1885a /layouts/_partials
parenta4df20452d56a2f2d987ecd4f0f446db6561be01 (diff)
refactor: taxonomy layout and update category/tag sections
Former-commit-id: 2f37a1b30019f519f89f6f6b69e6429d16ff7728
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/taxonomy/all-categories.html4
-rw-r--r--layouts/_partials/taxonomy/all-tags.html6
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_partials/taxonomy/all-categories.html b/layouts/_partials/taxonomy/all-categories.html
index 4c0d3f1e..eb60336d 100644
--- a/layouts/_partials/taxonomy/all-categories.html
+++ b/layouts/_partials/taxonomy/all-categories.html
@@ -15,3 +15,7 @@
</a>
{{ end }}
</section>
+
+<a class="small-button" href="/categories/uncategorized/">
+ 查看随笔 <span class="text-secondary">→</span>
+</a>
diff --git a/layouts/_partials/taxonomy/all-tags.html b/layouts/_partials/taxonomy/all-tags.html
index 8c5ae35f..81edb74d 100644
--- a/layouts/_partials/taxonomy/all-tags.html
+++ b/layouts/_partials/taxonomy/all-tags.html
@@ -34,9 +34,9 @@
<!-- Display categorized tags -->
{{ range $category, $categoryTags := $categorizedTags }}
- <div class="taxonomy-category">
- <h3 class="taxonomy-category-title">{{ $category }}</h3>
- <div class="taxonomy-tags">
+ <div>
+ <h3>{{ $category }}</h3>
+ <div class="flex flex-wrap gap-2">
{{ range $categoryTags }}
{{ partial "taxonomy/tag-pill" . }}
{{ end }}