Merge pull request #18 from haidelber/master

Use Bootstrap ListGroup for terms overview
This commit is contained in:
Michael Romero 2017-03-06 11:33:02 -08:00 committed by GitHub
commit 0fd9dc2e64

View File

@ -6,31 +6,20 @@
<body> <body>
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
{{ partial "header_wp.html" . }}
<header class="header-section ">
<div class="intro-header no-img">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-heading">
<h2>{{ .Title }}</h2>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="container" role="main"> <div class="container" role="main">
<article class="post-preview"> <article class="post-preview">
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
{{ range $key, $value := .Data.Terms.ByCount }} {{ range $key, $value := .Data.Terms.ByCount }}
<li> <a href="/tags/{{ $value.Name | urlize }}" class="list-group-item">
<a href="/tags/{{ $value.Name | urlize }}"> {{ $value.Name }}<span class="badge">{{ $value.Count }}</span></a>
{{ $value.Name }}({{ $value.Count }})</a>
</li>
{{ end }} {{ end }}
</div>
</article> </article>
</div> </div>
{{ partial "footer.html" . }}
</body> </body>
</html> </html>