github.com/projectcontour/contour@v1.28.2/site/themes/contour/layouts/partials/plugins.html (about)

     1  <div class="grid three">
     2      {{ $limit := int (.Scratch.Get "limit") }}
     3      {{ $pages := sort (.Site.GetPage "/plugins/list").Resources "Name" }}
     4  
     5      {{ if gt $limit 0 }}
     6          {{ $pages = first $limit $pages }}
     7      {{ end }}
     8  
     9      {{ range $index, $page := $pages }}
    10      <div class="col">
    11          <div class="content plugins">
    12              {{ if .Params.link }}
    13                  <h3><a href="{{ .Params.link }}">{{ .Title }}</a></h3>
    14              {{ else }}
    15                  <h3>{{ .Title }}</h3>
    16              {{ end }}
    17              <p>{{ .Content }}</p>
    18              {{ if .Params.objectStorage }}
    19                  <img src="https://img.shields.io/badge/Object Storage-supported-green">
    20              {{ end }}
    21              {{ if .Params.volumesnapshotter }}
    22                  <img src="https://img.shields.io/badge/VolumeSnapshotter-supported-green">
    23              {{ end }}
    24              {{ if .Params.localStorage }}
    25                  <img src="https://img.shields.io/badge/Local Storage-supported-green">
    26              {{ end }}
    27              {{ if .Params.supportedByVeleroTeam }}
    28                  <img src="https://img.shields.io/badge/Supported%20By-Velero%20team-blue">
    29              {{ end }}
    30              {{ if .Params.BackupItemAction }}
    31                  <img src="https://img.shields.io/badge/BackupItemAction-supported-green">
    32              {{ end }}
    33              {{ if .Params.RestoreItemAction }}
    34                  <img src="https://img.shields.io/badge/RestoreItemAction-supported-green">
    35              {{ end }}
    36              {{ if .Params.beta }}
    37                  <img src="https://img.shields.io/badge/Beta-true-yellow">
    38              {{ end }}
    39          </div>
    40      </div>
    41      {{ $currentIndex := add $index 1 }}
    42      {{ $row := mod $currentIndex 3 }}
    43      {{ if eq $row 0 }}
    44  </div>
    45  <div class="grid three">
    46      {{ end }}
    47      {{ end }}
    48  </div>