2022-12-03 15:27:03 +00:00
|
|
|
<div class="tags">
|
|
|
|
<p class="clearfix">Tags:
|
|
|
|
{{ if (isset . 0) }} {{/* Hack to check if this is an array https://discourse.gohugo.io/t/how-to-check-if-a-variable-is-string-or-array/7460/7 */}}
|
2022-12-04 19:09:00 +00:00
|
|
|
{{ range first 1 . }}
|
2022-12-03 15:27:03 +00:00
|
|
|
<a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
|
|
|
|
{{ end }}
|
2022-12-04 19:09:00 +00:00
|
|
|
{{ range after 1 . }}
|
2022-12-03 15:27:03 +00:00
|
|
|
• <a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2022-12-04 19:09:00 +00:00
|
|
|
<a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
2022-12-04 19:09:00 +00:00
|
|
|
</div>
|