Navbar (#21)
* make navbar template more readable * fix download button
This commit is contained in:
parent
e3196c7ad5
commit
c4171feff0
3 changed files with 24 additions and 11 deletions
|
@ -1,11 +1,8 @@
|
|||
{% if this.video_url
|
||||
%}<div class="fit">
|
||||
<div class="fit">
|
||||
<youtube-embed embed="{{ this.video_url }}"></youtube-embed>
|
||||
<noscript>
|
||||
<div class="youtube">
|
||||
<iframe src='https://invidio.us/embed/{{ this.video_url }}?rel=0' frameborder='0' allow="autoplay; encrypted-media" allowfullscreen scrolling="no"></iframe>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
<a class="button" href="https://www.youtube.com/watch?v={{ this.video_url }}{% if this.alt %}&gl={{ this.alt }}&hl={{ this.alt }}{% endif %}" target="_blank" rel="noopener">{%
|
||||
if bag('translate', this.alt, 'directytlink') %}{{ bag('translate', this.alt, 'directytlink') }}{%
|
||||
else %}Direkt zum YouTube-Video{% endif %}</a>{% endif %}{% if this.video
|
||||
%} <a class="button" href="{{ this.video|url }}" download>{%
|
||||
if bag('translate', this.alt, 'directlink') %}{{ bag('translate', this.alt, 'directlink') }}{%
|
||||
else %}Download Video{% endif %}</a>{% endif %}
|
||||
<br/>
|
||||
|
|
|
@ -38,7 +38,15 @@
|
|||
<br/>
|
||||
{% else %}
|
||||
{% if post.video_is_embeded %}{% for blk in post.video_embeded.blocks %}
|
||||
{{ blk }} <br/>
|
||||
{% 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
|
||||
%} <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/>
|
||||
{% endfor %}{%
|
||||
endif %} {% if post.project %}
|
||||
<div class="lightgallery" class="row alt">{%
|
||||
|
|
|
@ -25,7 +25,15 @@
|
|||
<section id="content">
|
||||
{{ post.body }}
|
||||
{% if post.video_is_embeded %}{% for blk in post.video_embeded.blocks %}
|
||||
{{ blk }} <br/>
|
||||
{% 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
|
||||
%} <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/>
|
||||
{% endfor %}{%
|
||||
endif %}
|
||||
{% if post.project %}
|
||||
|
|
Loading…
Reference in a new issue