9c5db0ddae
add tagcloud in the articles section add emojis to the tags
13 lines
No EOL
599 B
HTML
13 lines
No EOL
599 B
HTML
<div id="theme-tagcloud" class="col-sm-12" style="margin-bottom: 15px;">
|
|
{{ $tags := $.Site.Taxonomies.tags.ByCount }}
|
|
{{ $v1 := where $tags "Count" ">=" 3 }}
|
|
{{ $v2 := where $v1 "Term" "not in" (slice "hugo" "tags" "rss") }}
|
|
{{ range $v2 }}
|
|
{{ if .Term }}
|
|
{{ $tagURL := printf "tags/%s" .Term | relURL }}
|
|
<a href="{{ $tagURL }}" class="btn btn-default" role="button"
|
|
style="text-transform: uppercase; font-size: 12px; padding-right: 5px; padding-left: 5px;">{{ .Term }} <span
|
|
class="badge">({{ .Count }})</span></a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div> |