cupper-hugo-theme/themes/inclusive-docs/layouts/shortcodes/principles.html
2017-06-12 19:05:48 +08:00

12 lines
366 B
HTML

{{ $JSON := $.Site.Data.principles }}
{{ $included := split (.Get "include") ", " }}
<ul class="principles">
{{ range $JSON.principles }}
{{ if in $included (lower .title) }}
<li>
<strong><a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">{{ .title }}</a>:</strong> {{ .strapline }}
</li>
{{ end }}
{{ end }}
</ul>