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

terms.html « _default « layouts - github.com/darshanbaral/mero.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37830a2ca411b41ad7a7d7d86d09d5370cb3b945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}
<main>
  <h1 id="title">{{ .Title }}</h1>
  <div class="d-flex flex-row flex-wrap mb-3">
    {{ $data := .Data }}
    {{ range $key, $value := .Data.Terms }}
    <div class="p-1 border rounded m-1">
      <h3 class="m-0">
        <a href="/{{ $data.Plural }}/{{ $key | urlize }}">
          {{ $key }}
        </a>
      </h3>
      <p class="ml-2">{{ len $value }} posts.</p>
    </div>
    {{ end }}
  </div>
</main>
{{ partial "footer.html" . }}
{{ end }}