mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
15
themes/minimo/layouts/partials/entry/taxonomy-list.html
Normal file
15
themes/minimo/layouts/partials/entry/taxonomy-list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{- $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>
|
Reference in New Issue
Block a user