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"> <li class="item item--post">
<article class="article article--post"> <article class="article article--post">
{% if video.image -%} {%- assign realslug = video.url | split:'/' | last -%}
{% if video.image contains '://' -%} <img src="https://video.chaotikum.net/thumbnails/{{realslug}}_play.png" alt="" width=50% height=50% style="float: right; margin: 0 0 0 15px;"/>
<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 -%}
<h2><a href="{{ site.baseurl }}{{ video.url }}">{{ title | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines }}</a></h2> <h2><a href="{{ site.baseurl }}{{ video.url }}">{{ title | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines }}</a></h2>
<div class="teaser"> <div class="teaser">
{{ video.excerpt | strip_html | markdownify | truncatewords: 60 }} {{ video.excerpt | strip_html | markdownify | truncatewords: 60 }}
......
...@@ -20,14 +20,16 @@ ...@@ -20,14 +20,16 @@
<!-- no feature --> <!-- no feature -->
{% else %} {% else %}
{% include site-feature.html %} {% 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 %} {% endif %}
{% if page.layout == "video" -%} {% 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 -%} {% endif -%}
<div class="statusmobile" style="width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;">
{% include space-status-mobile.html %}
</div>
</header> </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