rf-web/_includes/archive/archive-item.html

44 lines
1.1 KiB
HTML
Raw Normal View History

2020-11-22 20:08:43 +00:00
{% assign event = include.event %}
2020-11-22 23:10:48 +00:00
2020-11-22 20:08:43 +00:00
{% 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 %}
2020-11-22 23:10:48 +00:00
<div class="participants">
2020-11-22 20:08:43 +00:00
{% for eventParticipantId in event.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == eventParticipantId %}
2020-11-22 23:10:48 +00:00
<span class="block participant-name">— {{ participant.fullname }}</span>
2020-11-22 20:08:43 +00:00
{% 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 %}
2020-11-22 23:10:48 +00:00
{% if event.format %}
<div class="format-label">
<small class="prog-item--format sup flex-1 margin-0">[{{ event.format }}]</small>
</div>
{% endif %}
2020-11-22 20:08:43 +00:00
{{ inner }}
</a>
</li>
{% endif %}