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

taxonomy.html « _default « layouts « docs - github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 430c301fec97f278e6cec71ab1029ecefbc0da28 (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
{{ define "main" }}
  <nav aria-label="breadcrumb">
    <ol class="breadcrumb my-4 p-0">
      <li class="breadcrumb-item"><a href="/">Icons</a></li>
      <li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
    </ol>
  </nav>

  <h1 class="h2 mb-4">All {{ .Type }}</h1>
  <div class="grid category-grid">
    {{ range .Data.Pages }}
      <a class="category-grid-item d-block text-decoration-none link-dark hover-link-primary" href="{{ .Permalink }}">
        <div class="d-flex flex-wrap justify-content-center p-3 mb-3 text-dark border rounded-3 fs-2 hover-border-primary hover-shadow-primary" style="min-height: 140px">
          {{ range first 10 (where .Data.Pages ".Params.categories" "intersect" (slice .Title)) }}
            {{ $name := .Title | urlize }}
            <i class="bi bi-{{ $name }}"></i>
          {{ end }}
        </div>
        <h2 class="fs-5">{{ .Title }}</h2>
      </a>
    {{ end }}
  </div>
{{ end }}