fix: Fix key name for categories

This commit is contained in:
JY Hsu 2024-09-17 20:04:21 +08:00
parent 871286192c
commit 31aa4b6c91

View file

@ -1,5 +1,5 @@
<div class="col-xs-12 col-sm-6 col-lg-4 pt-2 filtr-item"
data-category='all, {{ with .category }}{{ delimit . ","}}{{ end }}'
data-category='all, {{ with .categories }}{{ delimit . ","}}{{ end }}'
>
<a class="text-decoration-none" {{ if .url }}href="{{ .url }}" title="{{ .name }}" target="_blank" rel="noopener"{{ end }}>
<div class="card">