master #1
13
layouts/partials/taglist.html
Normal file
13
layouts/partials/taglist.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{- if isset .Params "tags" -}}
|
||||||
|
{{- $tagsLen := len .Params.tags -}}
|
||||||
|
{{- if gt $tagsLen 0 -}}
|
||||||
|
<div style="clear:both" class=taglist>
|
||||||
|
{{- with .Site.Params.relatedtext }} <a href="/tags">{{ . }}</a> <br>{{ end -}}
|
||||||
|
{{- range $k, $v := .Params.tags -}}
|
||||||
|
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
|
||||||
|
<a id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a>
|
||||||
|
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user