mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
16 lines
480 B
HTML
16 lines
480 B
HTML
{{- $txs := ( $.Scratch.Get "taxonomy" ) -}}
|
|
{{- $tx := ( $txs | singularize ) -}}
|
|
|
|
{{- $taxonomies := ( index $.Site.Taxonomies $txs ) -}}
|
|
|
|
<div class='{{ $txs }}'>
|
|
{{- partial "svg/icon" $tx -}}
|
|
<span class='screen-reader-text'>{{ ( ( i18n $tx 2 ) | default $txs ) }}: </span>
|
|
{{- range $i, $item := ( $.GetTerms $txs ) -}}
|
|
{{- if gt $i 0 }}, {{ end -}}
|
|
<a class='{{ $tx }}' href='{{ $item.RelPermalink }}'>
|
|
{{- $item.Title -}}
|
|
</a>
|
|
{{- end -}}
|
|
</div>
|