Welcome to mirror list, hosted at ThFree Co, Russian Federation.

terms.html « _default « layouts - github.com/sudorook/capsule.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5522a52b443552e524c617927705a583e1395bef (plain)
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
<!DOCTYPE html>
<html lang="{{ .Language }}" dir="ltr" itemscope itemtype="http://schema.org/Article">

  {{ partial "head.html" . }}

  <body style="min-height:100vh;display:flex;flex-direction:column">

    {{ partial "navbar.html" . }}

    <section class="section" style="flex:1">

      <!-- Content -->
      <div class="container" style="min-height:56vh">
        <h1 class="title">List of {{ .Title }}</h1>
        <ul>
        {{- $data := .Data }}
        {{- range $key, $value := .Data.Terms.ByCount }}
          <li class="title is-4 is-flex" style="justify-content:space-between">
            <span>
              <a href="{{ urlize "/" }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
                {{ $value.Name | title }}
              </a>
            </span>
            <span>
              {{ $value.Count }} posts
            </span>
          </li>
        {{- end }}
        </ul>
      </div>

    </section>

    {{ partial "footer.html" . }}

  </body>

</html>