2017-08-29 20:37:06 +02:00
|
|
|
{{ "<!-- ORGANISATIONS -->" | safeHTML }}
|
|
|
|
<section id="organisations">
|
|
|
|
<div class="container">
|
|
|
|
<div class="text-center">
|
|
|
|
<h2 class="section-heading">{{ .Site.Params.organisations.headline }}</h2>
|
|
|
|
<hr />
|
2017-09-06 00:52:52 +02:00
|
|
|
<!-- replace the URL defined in config.toml because this snipped is used in sub-pages too -->
|
|
|
|
<p>{{ replace .Site.Params.organisations.text "openletter/" ("/openletter" | relLangURL) | markdownify }}</p>
|
2017-08-29 20:37:06 +02:00
|
|
|
<div class="orgs">
|
|
|
|
<ul>
|
2017-09-14 11:36:33 +02:00
|
|
|
{{ $orgs := getJSON "data/organisations/organisations.json" }}
|
|
|
|
{{ $lower := sort $orgs "name" }}
|
|
|
|
{{ $.Scratch.Set "lower_names" (slice) }}
|
|
|
|
{{ range $lower }}
|
|
|
|
{{ $.Scratch.Add "lower_names" (lower .name) }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range sort ($.Scratch.Get "lower_names") }}
|
|
|
|
|
|
|
|
{{ $lower_int := . }}
|
|
|
|
{{ range $int := $orgs }}
|
|
|
|
{{ if eq $lower_int (lower $int.name) }}
|
2017-09-07 20:35:54 +02:00
|
|
|
<li><a href="{{ .url }}" class="hiddenlink" title="{{ .name }}" style="background-image: url(/img/organisations/{{ .img }})" target="_blank"></a></li>
|
2017-09-14 11:36:33 +02:00
|
|
|
{{ end }}
|
2017-08-29 20:37:06 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2017-09-14 11:36:33 +02:00
|
|
|
|
2017-08-29 20:37:06 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|