Skip to content

Commit

Permalink
Simplify tag lookup
Browse files Browse the repository at this point in the history
See #28
  • Loading branch information
bep committed Apr 26, 2017
1 parent 7c96c71 commit b61b210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/tag-cloud.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row">
<div id="theme-tagcloud" class="col-sm-12" style="margin-bottom: 15px;">
{{ $tags := (index $.Site.Taxonomies "tags").ByCount }}
{{ $tags := $.Site.Taxonomies.tags.ByCount }}
{{ $v1 := where $tags "Count" ">=" 3 }}
{{ $v2 := where $v1 "Term" "not in" (slice "hugo" "tags" "rss") }}
{{ range $v2 }}
Expand Down

0 comments on commit b61b210

Please sign in to comment.