2017-06-15 10:41:44 +02:00
|
|
|
{{ $JSON := $.Site.Data.wcag }}
|
2017-07-08 13:21:43 +02:00
|
|
|
{{ $included := replace (.Get "include") ", " "," }}
|
|
|
|
{{ $included := split $included "," }}
|
2017-06-15 10:41:44 +02:00
|
|
|
{{ $descriptions := .Get "descriptions" }}
|
|
|
|
<ul class="wcag {{ if $descriptions }}with-desc{{ end }}">
|
|
|
|
{{ range $JSON }}
|
|
|
|
{{ if in $included .ref_id }}
|
|
|
|
<li>
|
2017-06-19 11:40:21 +02:00
|
|
|
<strong><a href="{{ .url }}">
|
2017-08-03 13:16:24 +02:00
|
|
|
<svg class="wcag-icon" viewBox="0 0 127.09899 67.763" aria-hidden="true" focusable="false">
|
|
|
|
<use xlink:href="#w3c"></use>
|
|
|
|
</svg>
|
2017-06-28 11:34:21 +02:00
|
|
|
{{ .ref_id }} {{ .title }}</a> (level {{ .level }}){{ if $descriptions }}:{{ end }}
|
2017-06-15 10:41:44 +02:00
|
|
|
</strong>
|
|
|
|
{{ if $descriptions }}
|
|
|
|
{{ .description }}
|
|
|
|
{{ if .special_cases }}
|
|
|
|
<ul>
|
|
|
|
{{ range .special_cases }}
|
|
|
|
<li><strong>{{ .title }}:</strong>
|
|
|
|
{{ .description }}
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|