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

13 lines
372 B
HTML
Raw Normal View History

2017-06-11 15:00:01 +02:00
{{ $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>