use Bootstrap ListGroup for terms page

This commit is contained in:
Stefan Haider 2017-02-26 12:49:39 +01:00
parent 77a8fc4a30
commit d23ca0a38a

View File

@ -6,31 +6,20 @@
<body> <body>
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
{{ partial "header_wp.html" . }}
<header class="header-section "> <div class="container" role="main">
<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">
<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>