Skip to content
Snippets Groups Projects
Commit 99629355 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

more video stuff, preview images in overview

parent 53e506d3
No related branches found
No related tags found
No related merge requests found
Pipeline #8926 passed
<li class="item item--post">
<article class="article article--post">
{% if video.image -%}
{% if video.image contains '://' -%}
<img src="{{video.image}}" alt="" width=50% height=50% style="float: left; margin: 0 15px 0 0;"/>
{% else -%}
<img src="{{site.baseurl}}/images/thumbnails/{{video.image}}" alt="" width=50% height=50% style="float: right; margin: 0 0 0 15px;"/>
{% endif -%}
{% endif -%}
{%- assign realslug = video.url | split:'/' | last -%}
<img src="https://video.chaotikum.net/thumbnails/{{realslug}}_play.png" alt="" width=50% height=50% style="float: right; margin: 0 0 0 15px;"/>
<h2><a href="{{ site.baseurl }}{{ video.url }}">{{ title | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines }}</a></h2>
<div class="teaser">
{{ video.excerpt | strip_html | markdownify | truncatewords: 60 }}
......
......@@ -20,14 +20,16 @@
<!-- no feature -->
{% else %}
{% include site-feature.html %}
<div class="statusmobile" style="width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;">
{% include space-status-mobile.html %}
</div>
{% endif %}
{% if page.layout == "video" -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{page.name}}.png{% endcapture -%}
{%- assign realslug = page.url | split:'/' | last -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{realslug}}_play.png{% endcapture -%}
{% endif -%}
<div class="statusmobile" style="width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;">
{% include space-status-mobile.html %}
</div>
</header>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment