mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
BBaoVanC
0f717e81c0
References: - https://github.com/gohugoio/hugo/releases/tag/v0.120.0 - https://github.com/gohugoio/hugo/issues/10876 - https://github.com/gohugoio/hugo/issues/11502
12 lines
419 B
HTML
12 lines
419 B
HTML
{{ with (.GetTerms "categories") }}
|
|
{{ $categories := slice }}
|
|
{{ range . }}
|
|
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
{{ end }}
|
|
|
|
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
|
{{ partial "icon.html" "folder" }}
|
|
{{ delimit $categories ", " | safeHTML }}
|
|
</div>
|
|
{{ end }}
|