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

principles.html « shortcodes « layouts - github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca846acfee25b71f5bbd60b952d9176a45e2aa18 (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
{{ $JSON := $.Site.Data.principles }}
{{ $included := replace (.Get "include") ", " "," }}
{{ $included := apply (split $included ",") "lower" "." }}
{{ $descriptions := .Get "descriptions" }}
<ul class="principles {{ if and ($descriptions) (ne $descriptions "false") }}with-desc{{ end }}">
  {{ range $JSON.principles }}
    {{ if in $included (lower .title) }}
      <li>
        <strong>
          <a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">
            <svg class="balloon-icon" viewBox="0 0 141.73228 177.16535" aria-hidden="true" focusable="false">
              <use xlink:href="#balloon"></use>
            </svg>
            {{ .title }}
          </a>:
        </strong>
        <em>{{ .strapline }}</em>
        {{ if and ($descriptions) (ne $descriptions "false") }}
          <p>{{ .description }}</p>
        {{ end }}
      </li>
    {{ end }}
  {{ end }}
</ul>