blog/themes/farallon/layouts/partials/category.html

13 lines
500 B
HTML
Raw Normal View History

2024-05-06 16:34:08 +08:00
{{ if .Params.categories }}
<div class="category--card__list">
{{ range (.GetTerms "categories") }}
<a href="{{ .RelPermalink }}" class="category--card">
<div class="category--card__image"><img src="{{ .Params.cover }}" /></div>
<div class="category--card__content">
<div class="category--card__title">{{ .LinkTitle }}</div>
<div class="category--card__description">{{ .Params.description }}</div>
</div>
</a>
{{ end }}
</div>
{{ end }}