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:
+1
-1
@@ -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 -}}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user