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

icons.html « partials « layouts « docs - github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a03a12a50aa9b55120245016a4ff04f002e44dba (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
<div class="my-5">
  <ul class="list-unstyled list">
    {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
      {{ if eq "categories" $taxonomyname }}
        {{ range $key, $value := $taxonomy }}
          <li class="my-5" id="{{ $key }}">
            <h3 class="d-flex align-items-center gap-3 pb-3 mb-4 border-bottom">
              <a href="/categories/{{ $key }}" class="link-dark text-decoration-none">
                {{ $key | humanize }}
              </a>
              <small class="badge fs-6 text-muted bg-light rounded-pill">{{ .Count }}</small>
            </h3>
            <ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-4 row-cols-xl-6 list-unstyled">
              {{ range first 24 ($value.Pages) }}
                {{ partial "icon" . }}
              {{ end }}
            </ul>
            {{ if gt .Count 24 }}
            <a class="d-block py-3 btn btn-subtle" href="/categories/{{ $key }}">
              View all {{ .Count }}
            </a>
            {{ end }}
          </li>
        {{ end }}
      {{ end }}
    {{ end }}
  </ul>
</div>