diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-21 15:40:01 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-21 15:40:01 +0800 |
| commit | 1c423d00ebeb2895de496d9fb888516911f50d4c (patch) | |
| tree | e08925c95a75af6644e1f104255bd970587e8789 | |
| parent | 9c93fe1f747709015c88fffbf706723cc8f2d48c (diff) | |
refactor: reuse category-pill partial
Former-commit-id: 05d84f13f188b05035476fb8c287fea5b5d9f0c3
| -rw-r--r-- | layouts/_partials/items/post.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html index 2bf6a157..8bbd68a8 100644 --- a/layouts/_partials/items/post.html +++ b/layouts/_partials/items/post.html @@ -26,10 +26,8 @@ </h2> </div> {{ with .ctx.Params.categories }} - <div class="my-2"> - <a href="/categories/{{ . }}" style="padding: 0.1rem 0.3rem;"> - {{ . }} - </a> + <div class="my-4"> + {{ partial "components/category-pill" $ctx }} </div> {{ end }} </header> |
