cupper-hugo-theme/themes/inclusive-docs/layouts/shortcodes/principles.html
2017-06-11 21:00:01 +08:00

13 lines
372 B
HTML

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