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 94c731a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
6 changes: 2 additions & 4 deletions layouts/partials/tag-cloud.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="row">
<div id="theme-tagcloud" class="col-sm-12" style="margin-bottom: 15px;">
<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") }}
Expand All @@ -9,5 +8,4 @@
<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>

0 comments on commit 94c731a

Please sign in to comment.