principles.html 591 B

12345678910111213141516
  1. {{ $JSON := $.Site.Data.principles }}
  2. {{ $included := .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><a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">{{ .title }}</a>:</strong> <em>{{ .strapline }}</em>
  10. {{ if $descriptions }}
  11. <p>{{ .description }}</p>
  12. {{ end }}
  13. </li>
  14. {{ end }}
  15. {{ end }}
  16. </ul>