cupper-hugo-theme/themes/infusion/layouts/shortcodes/principles.html

23 lines
792 B
HTML
Raw Normal View History

2017-06-15 10:41:44 +02:00
{{ $JSON := $.Site.Data.principles }}
2017-07-08 13:21:43 +02:00
{{ $included := replace (.Get "include") ", " "," }}
{{ $included := apply (split $included ",") "lower" "." }}
2017-06-15 10:41:44 +02:00
{{ $descriptions := .Get "descriptions" }}
<ul class="principles {{ if $descriptions }}with-desc{{ end }}">
{{ range $JSON.principles }}
{{ if in $included (lower .title) }}
<li>
2017-06-28 11:34:21 +02:00
<strong>
<a href="https://inclusivedesignprinciples.org#{{ .title | urlize }}">
2017-07-13 20:05:53 +02:00
<svg class="balloon-icon" viewBox="0 0 141.73228 177.16535" aria-hidden="true"><use xlink:href="#balloon"></use></svg>
2017-06-28 11:34:21 +02:00
{{ .title }}
</a>:
</strong>
<em>{{ .strapline }}</em>
2017-06-15 10:41:44 +02:00
{{ if $descriptions }}
<p>{{ .description }}</p>
{{ end }}
</li>
{{ end }}
{{ end }}
</ul>