27 lines
782 B
HTML
27 lines
782 B
HTML
|
{{ $JSON := $.Site.Data.wcag }}
|
||
|
{{ $included := split (.Get "include") ", " }}
|
||
|
{{ $descriptions := .Get "descriptions" }}
|
||
|
<ul class="wcag {{ if $descriptions }}with-desc{{ end }}">
|
||
|
{{ range $JSON }}
|
||
|
{{ if in $included .ref_id }}
|
||
|
<li>
|
||
|
<strong><a href="{{ .url }}">{{ .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>
|