principles.html 823 B

12345678910111213141516171819202122
  1. {{ $JSON := $.Site.Data.principles }}
  2. {{ $included := replace (.Get "include") ", " "," }}
  3. {{ $included := apply (split $included ",") "lower" "." }}
  4. {{ $descriptions := .Get "descriptions" }}
  5. <ul class="principles {{ if $descriptions }}with-desc{{ end }}">
  6. {{ range $JSON.principles }}
  7. {{ if in $included (lower .title) }}
  8. <li>
  9. <strong>
  10. <a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">
  11. <svg class="balloon-icon" height="177.17" width="141.73" viewBox="0 0 141.73228 177.16535" aria-hidden="true"><use xlink:href="#balloon"></use></svg>
  12. {{ .title }}
  13. </a>:
  14. </strong>
  15. <em>{{ .strapline }}</em>
  16. {{ if $descriptions }}
  17. <p>{{ .description }}</p>
  18. {{ end }}
  19. </li>
  20. {{ end }}
  21. {{ end }}
  22. </ul>