rf-web/_includes/archive/archive-item.html
2020-11-23 00:10:48 +01:00

44 lines
1.1 KiB
HTML

{% assign event = include.event %}
{% capture inner %}
<div class="inner">
{% if event.short_title %}
<p class="margin text-lg">
{{ event.short_title }}
</p>
{% else %}
<p class="margin text-lg">
{{ event.title_ }}
</p>
{% endif %}
<div class="participants">
{% for eventParticipantId in event.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == eventParticipantId %}
<span class="block participant-name">— {{ participant.fullname }}</span>
{% endif %}
{% endfor %}
{% endfor %}
</div>
</div>
{% endcapture %}
{% if event.ref != "no-ref" %}
<li class="textbox event" >
<a href="/rf2020/events/{{ event.ref }}.html">
{% if event.pic %}
<div class="bg-img" style="background-image: url({{ event.pic }})">
{{ inner }}
</div>
{% endif %}
{% if event.format %}
<div class="format-label">
<small class="prog-item--format sup flex-1 margin-0">[{{ event.format }}]</small>
</div>
{% endif %}
{{ inner }}
</a>
</li>
{% endif %}