1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-30 16:47:45 +01:00
website/_src/_includes/caretakers.html

25 lines
884 B
HTML
Raw Normal View History

2018-10-01 13:42:22 +02:00
<div class="caretakers grid grid--half grid-medium--fit grid-medium--columns grid--justifycenter grid--gutters">
2018-10-01 14:24:10 +02:00
{% assign caretakers = (site.data.caretakers | sort: 'name') %}
2018-10-01 13:42:22 +02:00
{% for caretaker in caretakers %}
2018-10-01 14:24:10 +02:00
{% assign slug = (caretaker.name | downcase | replace: ' ', '-' | replace: '.', '-') %}
2018-10-01 13:42:22 +02:00
2018-10-01 14:24:10 +02:00
<div class="grid__col grid__col--2">
<a class="caretaker" href="{{ caretaker.link }}" rel="external">
{% if caretaker.logo == false %}
<span class="caretaker__name">{{ caretaker.name }}</span>
{% else %}
<svg class="logo-caretaker logo-caretaker--{{ slug }}" aria-labelledby="title">
<title>{{ caretaker.name }}</title>
<use xlink:href="/assets/img/sprite.svg#logo-{{ slug }}"></use>
</svg>
{% endif %}
2018-10-01 13:42:22 +02:00
2018-10-01 14:24:10 +02:00
</a>
</div>
2018-10-01 13:42:22 +02:00
{% endfor %}
</div>