feat: show all category badges on hero and post cards

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 18:09:30 +02:00
parent 1bbdd33c0c
commit e66da58826
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
<div class="flex flex-wrap items-center gap-3 mb-6"> <div class="flex flex-wrap items-center gap-3 mb-6">
<span class="badge badge-pulse">Featured Drop</span> <span class="badge badge-pulse">Featured Drop</span>
{{- with .Params.categories -}} {{- with .Params.categories -}}
{{- range first 1 . -}} {{- range . -}}
<a href="/categories/{{ . | urlize }}/" class="badge badge-outline">{{ . }}</a> <a href="/categories/{{ . | urlize }}/" class="badge badge-outline">{{ . }}</a>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
+1 -1
View File
@@ -25,7 +25,7 @@
<!-- Category badge — parallelogram --> <!-- Category badge — parallelogram -->
{{- with $post.Params.categories -}} {{- with $post.Params.categories -}}
<div class="flex flex-wrap gap-2 px-4 pt-4"> <div class="flex flex-wrap gap-2 px-4 pt-4">
{{- range first 1 . -}} {{- range . -}}
<span class="badge">{{ . }}</span> <span class="badge">{{ . }}</span>
{{- end -}} {{- end -}}
</div> </div>