Newer
Older
{% if e.uid == video.event -%}
{% assign event = e -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% if video.recording_date and recording_date.event != ''-%}
{% assign recording_date = video.recording_date -%}
{% elsif event -%}
{% assign recording_date = event.eventdate -%}
{% endif -%}
{% assign whitespace = " " %}
{% capture persons -%}
{% for person in video.persons %}{{person}}{% unless forloop.last %}, {% endunless %}
{% endfor -%}
{% endcapture -%}
{% capture persons2 -%}{% for person in video.persons %}{{person}}{% unless forloop.last %} und {% endunless %}{% endfor -%}{% endcapture -%}
{% capture persons3 -%}{{whitespace}} von {{persons2}}{% endcapture -%}
{% assign name_before_title = false -%}
{% for conf in video.conferences -%}
{% for c in site.conferences -%}
{% if conf == c.acronym and c.name_before_title -%}
{% assign name_before_title = true -%}
{% endif -%}
{% endfor -%}
{% endfor -%}
{% assign name_after_title = false -%}
{% for conf in video.conferences -%}
{% for c in site.conferences -%}
{% if conf == c.acronym and c.name_after_title -%}
{% assign name_after_title = true -%}
{% endif -%}
{% endfor -%}
{% endfor -%}
{% capture videotitle -%}
{% if video.persons and name_before_title -%}{{persons| strip}}: {% endif -%}{{video.title| xml_escape }}{% for conf in video.conferences -%}{% for c in site.conferences -%}{% if conf == c.acronym -%}{% if c.ecki -%}{{whitespace}}[{{c.title| xml_escape}}]{% endif -%}{% endif -%}{% endfor -%}{% endfor -%}{% if video.persons and name_after_title %}{{whitespace}}{{persons3| strip}}{% endif -%}
{% endcapture -%}
<article class="article article--post" style="min-height: 210px;">
{%- assign realslug = video.url | split:'/' | last -%}
<a href="{{ site.baseurl }}{{ video.url }}"><img class="mediamaximage" src="https://video.chaotikum.net/thumbnails/{{realslug}}.jpg" alt="" width=100% height=100% style="float: left; margin-right: 15px;"/></a>
<a href="{{ site.baseurl }}{{ video.url }}"><img class="mediaimage mediasideimage" src="https://video.chaotikum.net/thumbnails/{{realslug}}.jpg" alt="" width=30% height=30% style="float: left; margin-right: 15px;"/></a>
<h4 ><a href="{{ site.baseurl }}{{ video.url }}">{{ videotitle | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines }}</a></h4>
<spann class="fa fa-eye" aria-hidden="true"></spann><i> {{ recording_date | date: "%d.%m.%Y" }}</i><br>
<spann class="fa fa-upload" aria-hidden="true"></spann><i> {{ video.release_date | date: "%d.%m.%Y" }}</i>
{{ video.excerpt | markdownify | strip_html | truncatewords: 30 }}