diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-24 19:04:45 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-24 19:04:45 +0800 |
| commit | 2f37a1b30019f519f89f6f6b69e6429d16ff7728 (patch) | |
| tree | 04203cb05cf4c56472f0b480441af7d90de1885a | |
| parent | f8707d2d5f663f9124ab5cc79a1717446e36ab76 (diff) | |
refactor: taxonomy layout and update category/tag sections
| -rw-r--r-- | layouts/_partials/taxonomy/all-categories.html | 4 | ||||
| -rw-r--r-- | layouts/_partials/taxonomy/all-tags.html | 6 | ||||
| -rw-r--r-- | layouts/taxonomy.html | 5 |
3 files changed, 8 insertions, 7 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 }} diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html index 9682d36a..424f8071 100644 --- a/layouts/taxonomy.html +++ b/layouts/taxonomy.html @@ -5,10 +5,7 @@ <h2>文章系列</h2> {{ partial "taxonomy/all-categories.html" . }} - <p> - <a class="small-button text-[var(--secondary-text-color)]" href="/categories/uncategorized/">查看随笔 →</a> - </p> - + <hr /> <h2>标签</h2> {{ partial "taxonomy/all-tags.html" . }} </article> |
