hydden/layouts/partials/meta.html

16 lines
510 B
HTML
Raw Normal View History

2019-06-10 19:35:13 +00:00
<div class="meta">
{{ partial "breadcrumb.html" .Parent }}
{{ with .Params.tags }}
{{ $total := len . }}
{{ if gt $total 0 }}
&nbsp;&nbsp;
<div class="post-tags">
{{ $subtotal := sub $total 1 }} <i class="fas fa-tags"></i>
{{ range $i, $tag := . }}
<a class="badge badge-tag" href="{{ "/tags/" | absLangURL }}{{ $tag | urlize }}">{{ $tag | upper }}</a>
{{ if lt $i $subtotal }} {{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</div>