fix broken youtube button (#23)

* Update projekt.html

* Update blog.html
This commit is contained in:
maxbachmann 2019-05-17 09:48:17 +02:00 committed by L3D
parent 824322adc6
commit 932e8584dd
2 changed files with 6 additions and 6 deletions

View file

@ -41,12 +41,12 @@
{% if blk.video_url %}
{{ blk }} <br/>
<a class="button" href="https://www.youtube.com/watch?v={{ blk.video_url }}{% if post.alt %}&gl={{ post.alt }}&hl={{ post.alt }}{% endif %}" target="_blank" rel="noopener">{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}{{post.url}}{% endif %}</a>{% endif %}{% if blk.video
if bag('translate', post.alt, 'directytlink') %}{{ bag('translate', post.alt, 'directytlink') }}{%
else %}Direkt zum YouTube-Video{% endif %}</a>{% endif %}{% if blk.video
%} <a class="button" href="{{ blk.video|url }}" download>{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}Download Video{% endif %}</a>{% endif %}
<br/>
<br/><br/>
{% endfor %}{%
endif %} {% if post.project %}
<div class="lightgallery" class="row alt">{%

View file

@ -28,12 +28,12 @@
{% if blk.video_url %}
{{ blk }} <br/>
<a class="button" href="https://www.youtube.com/watch?v={{ blk.video_url }}{% if post.alt %}&gl={{ post.alt }}&hl={{ post.alt }}{% endif %}" target="_blank" rel="noopener">{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}{{post.url}}{% endif %}</a>{% endif %}{% if blk.video
if bag('translate', post.alt, 'directytlink') %}{{ bag('translate', post.alt, 'directytlink') }}{%
else %}Direkt zum YouTube-Video{% endif %}</a>{% endif %}{% if blk.video
%} <a class="button" href="{{ blk.video|url }}" download>{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}Download Video{% endif %}</a>{% endif %}
<br/>
<br/><br/>
{% endfor %}{%
endif %}
{% if post.project %}