wcag.html 782 B

1234567891011121314151617181920212223242526
  1. {{ $JSON := $.Site.Data.wcag }}
  2. {{ $included := split (.Get "include") ", " }}
  3. {{ $descriptions := .Get "descriptions" }}
  4. <ul class="wcag {{ if $descriptions }}with-desc{{ end }}">
  5. {{ range $JSON }}
  6. {{ if in $included .ref_id }}
  7. <li>
  8. <strong><a href="{{ .url }}">{{ .ref_id }} {{ .title }}</a> (level {{ .level }})
  9. {{ if $descriptions }}:{{ end }}
  10. </strong>
  11. {{ if $descriptions }}
  12. {{ .description }}
  13. {{ if .special_cases }}
  14. <ul>
  15. {{ range .special_cases }}
  16. <li><strong>{{ .title }}:</strong>
  17. {{ .description }}
  18. </li>
  19. {{ end }}
  20. </ul>
  21. {{ end }}
  22. {{ end }}
  23. </li>
  24. {{ end }}
  25. {{ end }}
  26. </ul>