cupper-hugo-theme/themes/inclusive-docs/layouts/shortcodes/principles.html

12 lines
366 B
HTML
Raw Normal View History

2017-06-11 15:00:01 +02:00
{{ $JSON := $.Site.Data.principles }}
{{ $included := split (.Get "include") ", " }}
2017-06-12 13:05:48 +02:00
<ul class="principles">
2017-06-11 15:00:01 +02:00
{{ range $JSON.principles }}
2017-06-12 13:05:48 +02:00
{{ if in $included (lower .title) }}
2017-06-11 15:00:01 +02:00
<li>
<strong><a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">{{ .title }}</a>:</strong> {{ .strapline }}
</li>
{{ end }}
{{ end }}
</ul>