principles.html 898 B

123456789101112131415161718192021222324
  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 and ($descriptions) (ne $descriptions "false") }}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" viewBox="0 0 141.73228 177.16535" aria-hidden="true" focusable="false">
  12. <use href="#balloon"></use>
  13. </svg>
  14. {{ .title }}
  15. </a>:
  16. </strong>
  17. <em>{{ .strapline }}</em>
  18. {{ if and ($descriptions) (ne $descriptions "false") }}
  19. <p>{{ .description }}</p>
  20. {{ end }}
  21. </li>
  22. {{ end }}
  23. {{ end }}
  24. </ul>