mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
{{- /* Categories Page */ -}}
|
|
|
|
<div class="categories-card">
|
|
{{- range .Data.Terms.ByCount -}}
|
|
{{- $term := .Term -}}
|
|
{{- $pages := .Pages -}}
|
|
{{- with $.Site.GetPage "taxonomy" (printf "%v/%v" $.Type $term) -}}
|
|
<div class="card-item">
|
|
<div class="card-item-wrapper">
|
|
<h2 class="card-item-title">
|
|
<a href='{{ partial "function/escapeurl.html" .RelPermalink }}'>
|
|
{{- dict "Class" "fa-regular fa-folder fa-fw me-1" | partial "plugin/icon.html" -}}
|
|
{{- .Page.Title }} <sup>{{ len $pages }}</sup>
|
|
</a>
|
|
</h2>
|
|
{{- range first 5 $pages -}}
|
|
<article class="archive-item">
|
|
<a href="{{ .RelPermalink }}" class="archive-item-link">
|
|
{{- $repost := .Params.repost | default dict -}}
|
|
{{- if eq $repost.enable true -}}
|
|
{{- dict "Class" "fa-solid fa-share fa-fw text-success me-1" | partial "plugin/icon.html" -}}
|
|
{{- end -}}
|
|
{{- cond (.Param "capitalizeTitles") (title .LinkTitle) .LinkTitle -}}
|
|
</a>
|
|
</article>
|
|
{{- end -}}
|
|
{{- if gt (len $pages) 5 -}}
|
|
<span class="more-post">
|
|
<a href='{{ partial "function/escapeurl.html" .RelPermalink }}' class="more-single-link">{{ T "pagination.more" }} >></a>
|
|
</span>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|