29 lines
970 B
HTML
29 lines
970 B
HTML
{{ $JSON := $.Site.Data.wcag }}
|
|
{{ $included := replace (.Get "include") ", " "," }}
|
|
{{ $included := split $included "," }}
|
|
{{ $descriptions := .Get "descriptions" }}
|
|
<ul class="wcag {{ if $descriptions }}with-desc{{ end }}">
|
|
{{ range $JSON }}
|
|
{{ if in $included .ref_id }}
|
|
<li>
|
|
<strong><a href="{{ .url }}">
|
|
<svg class="wcag-icon" viewBox="0 0 127.09899 67.763" width="127" height="68" aria-hidden="true"><use xlink:href="#w3c"></use></svg>
|
|
{{ .ref_id }} {{ .title }}</a> (level {{ .level }}){{ if $descriptions }}:{{ end }}
|
|
</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>
|