-
Notifications
You must be signed in to change notification settings - Fork 609
/
terms.html
43 lines (38 loc) · 1.75 KB
/
terms.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{ define "main" }}
{{ $data := .Data }}
<div class="container" role="main">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<article class="post-preview">
<div class="panel-group" id="accordion">
{{ range $key, $value := .Data.Terms.ByCount }}
<div class="panel panel-default">
<a class="collapsed" role="button" data-toggle="collapse" data-target="#collapse{{ $value.Name | anchorize }}" data-parent="#accordion">
<div class="panel-heading" id="header{{ $value.Name | anchorize }}">
<h4 class="panel-title">
{{ $value.Name }}
<span class="badge">{{ $value.Count }}</span>
</h4>
</div>
</a>
<div id="collapse{{ $value.Name | anchorize }}" class="panel-collapse collapse">
<div class="panel-body">
<!-- Fix for "https://github.com/halogenica/beautifulhugo/issues/349".
Inspired by "https://github.com/halogenica/beautifulhugo/pull/354#issuecomment-2106454808".
<a href="{{ $.Site.LanguagePrefix | absURL }}/{{ $data.Plural }}/{{ $value.Name | urlize }}/" class="list-group-item view-all">
-->
<a href="{{ $data.Plural | absLangURL }}/{{ $value.Name | urlize }}/" class="list-group-item view-all">
View all</a>
<div class="list-group">
{{ range $item := $value.WeightedPages }}
<a href="{{$item.Permalink}}" class="list-group-item">{{ $item.Title }}</a>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}
</div>
</article>
</div>
</div>
{{ end }}