rf-web/_layouts/event.html

92 lines
2.7 KiB
HTML
Raw Permalink Normal View History

2020-07-29 16:24:30 +00:00
---
layout: page
lang: en
2020-11-22 23:10:48 +00:00
parentEn: /rf2020/archive
parentFr: /fr/rf2020/archive
parentNameEn: rf2020/archive
parentNameFr: rf2020/archive
2021-01-30 14:31:30 +00:00
className: event
2020-07-29 16:24:30 +00:00
---
{% assign format=page.format | downcase %}
2020-09-23 15:03:45 +00:00
{% assign time = page.date | date: "%H:%M" %}
{% assign endTime = page.endDate | date: "%H:%M" %}
{% capture date %}
{% include utils/translated-date.html date=page.date lang=page.lang %}
{% endcapture %}
2020-09-11 09:43:26 +00:00
{% capture regLink %}
{% if format == 'workshop' and page.registration-link %}
<div class="textbox margin-16-bottom">
<a class="with-url-arrow" href="{{ page. registration-link }}">register to participate in this workshop</a>
</div>
{% endif %}
{% endcapture %}
2021-01-30 14:31:30 +00:00
{% capture post-class %}
{% if page.peertube-id or page.youtube-id %}
post-item
{% else %}
post-item content
{% endif %}
{% endcapture %}
2020-11-22 23:10:48 +00:00
<article class="page-content margin-64-bottom event">
2021-01-30 14:31:30 +00:00
<div class="{{ post-class }}">
<header class="post-header flex flex-align-end">
<div class="flex flex-col">
<h2>
{{ page.title_ | strip }}
<small>
[{{ page.format | strip }}]
</small>
</h2>
</div>
<img src="{{ page.pic }}" alt="" class="participant-profile">
</header>
2020-09-11 09:43:26 +00:00
<div class="flex flex-row flex-justify-space-between flex-wrap-m margin-16-bottom">
2021-01-30 14:31:30 +00:00
<div class="textbox margin-16-bottom-m hosts">
2020-09-11 09:43:26 +00:00
<h3>
2021-01-30 14:31:30 +00:00
By:
2020-09-11 09:43:26 +00:00
</h3>
{% for id in page.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == id %}
<a class="block with-url-arrow" href="/rf2020/participants/{{ participant.ref }}.html">{{ participant.fullname }}</a>
{% endif %}
{% endfor %}
{% endfor %}
</div>
2020-09-23 15:03:45 +00:00
{% if time and time != '00:00' %}
2021-01-30 14:31:30 +00:00
<div class="textbox date-box">
<h3 class="text-right">Broadcast on:</h3>
<p class="text-right margin-0">{{ date }}</p>
2020-09-11 09:43:26 +00:00
</div>
{% endif %}
</div>
2021-01-30 14:31:30 +00:00
{% if page.peertube-id %}
{% include embeds/peertube.html id=page.peertube-id %}
{% elsif page.youtube-id %}
{% include embeds/youtube.html slug=page.youtube-id %}
{% endif %}
<div class="post-content margin-16-bottom">
{% if page.youtube %}
2021-05-26 18:23:12 +00:00
{% unless page.peertube-id %}
{% include embeds/youtube.html slug=page.youtube %}
{% endunless %}
{% endif %}
2020-07-29 16:24:30 +00:00
<p>
{{ page.description | markdownify }}
</p>
2020-08-31 11:45:05 +00:00
{% for link in page.links %}
<a class="block with-url-arrow" href="{{ link }}">{{ link | remove_first: "https://" | remove_first: "http://" | remove_first: "www." }}</a>
{% endfor %}
2020-07-29 16:24:30 +00:00
</div>
</div>
2020-09-11 09:43:26 +00:00
2020-07-29 16:24:30 +00:00
</article>