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

terms.html « _default « layouts - github.com/st-wong/hugo-spectre-pixel-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f17a6adab2e4b18488bd0168438b77de519f50eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ define "profile" }}
  {{ partial "profile.html" . }}
{{ end }}

{{ define "main" }}
<div class="container my-gap">
  {{ $data := .Data }}
  {{ range $key, $value := .Data.Terms.ByCount }}
    {{ if ($value.Name) }}
      <a class="chip text-accent" href="{{ $.Site.BaseURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}">{{ $value.Name }} ({{ $value.Count }})</a>
    {{ end }}
  {{ end }}
</div>
{{ end }}