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

impove video stuff

parent 0b23c2cf
No related branches found
No related tags found
No related merge requests found
Pipeline #8922 passed
......@@ -22,6 +22,10 @@
{% include site-feature.html %}
{% endif %}
{% if page.layout == "video" -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{page.name}}.png{% endcapture -%}
{% endif -%}
<div class="statusmobile" style="width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;">
{% include space-status-mobile.html %}
</div>
......
......@@ -12,6 +12,11 @@
{% assign feature_image = page.image %}
{% endif %}
{% if page.layout == "video" -%}
{%- assign realslug = page.url | split:'/' | last -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{realslug}}.jpg{% endcapture -%}
{% endif -%}
{% if feature_image %}
{% if feature_image contains '://' %}
<meta name="twitter:image" content="{{feature_image}}">
......
......@@ -33,20 +33,12 @@ layout: default
<article class="article article--page typeset">
{%- assign realslug = page.url | split:'/' | last -%}
<div style="width: 100%;
display: flex;
background-color:#eeeeee;
justify-content: center;">
{% if page.image != nil %}
{% if page.image contains '://' %}
<img src="{{ page.image }}" alt="" style="margin: 0 auto;">
{% else %}
<img src="{{ site.baseurl }}/images/thumbnails/video/{{ page.image }}" alt="" style="margin: 0 auto;">
{% endif %}
{% else %}
<img src="{{ site.baseurl }}/images/thumbnails/video/default.jpg" alt="" style="margin: 0 auto;">
{% endif %}
<img src="https://video.chaotikum.net/thumbnails/{{ realslug }}.jpg" alt="" style="margin: 0 auto;">
</div>
<h4 style="text-align: center; background-color:#eeeeee; color:000000">{{ title }}</h4>
{% capture release_date %}{{page.release_date | date: '%s'}}{% endcapture -%}
......
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