Skip to content

Commit

Permalink
Pull the row div out of the partial
Browse files Browse the repository at this point in the history
See #28
  • Loading branch information
bep committed Apr 26, 2017
1 parent b61b210 commit ff2c51f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 2 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{{ partial "header.html" . }}
<div class="row">
{{ partial "tag-cloud.html" . }}
</div>
<div class="row">
{{ range .Site.RegularPages.ByLastmod.Reverse }}
{{ .Render "thumbnail"}}
Expand Down
24 changes: 11 additions & 13 deletions layouts/partials/tag-cloud.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<div class="row">
<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>
<div>
<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>

0 comments on commit ff2c51f

Please sign in to comment.