aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/components/streamable.html2
-rw-r--r--templates/components/vimeo.html2
-rw-r--r--templates/components/youtube.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/components/streamable.html b/templates/components/streamable.html
index 94dfc45..fa61888 100644
--- a/templates/components/streamable.html
+++ b/templates/components/streamable.html
@@ -1,5 +1,5 @@
{% component streamable(id, class="", title="") %}
<div class="yv{% if class %} {{class}}{% endif %}">
- <iframe src="https://www.streamable.com/e/{{id}}" title="{{title | default(value='Streamable') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
+ <iframe src="https://www.streamable.com/e/{{id}}" title="{{ title if title else 'Streamable' }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{% endcomponent streamable %}
diff --git a/templates/components/vimeo.html b/templates/components/vimeo.html
index d5a9e70..8af8405 100644
--- a/templates/components/vimeo.html
+++ b/templates/components/vimeo.html
@@ -1,5 +1,5 @@
{% component vimeo(id, class="", title="", autoplay=false, loop=false, noautopause=false, cookie=true) %}
<div class="yv{% if class %} {{class}}{% endif %}">
- <iframe src="https://player.vimeo.com/video/{{id}}?embedded=true{% if autoplay %}&autoplay=1{% endif %}{% if loop %}&loop=1{% endif %}{% if noautopause %}&autopause=0{% endif %}{% if not cookie %}&dnt=1{% endif %}" title="{{title | default(value='Vimeo') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
+ <iframe src="https://player.vimeo.com/video/{{id}}?embedded=true{% if autoplay %}&autoplay=1{% endif %}{% if loop %}&loop=1{% endif %}{% if noautopause %}&autopause=0{% endif %}{% if not cookie %}&dnt=1{% endif %}" title="{{ title if title else 'Vimeo' }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{% endcomponent vimeo %}
diff --git a/templates/components/youtube.html b/templates/components/youtube.html
index 1022825..7b09b39 100644
--- a/templates/components/youtube.html
+++ b/templates/components/youtube.html
@@ -1,5 +1,5 @@
{% component youtube(id, class="", title="", playlist="", autoplay=false, cookie=false) %}
<div class="yv{% if class %} {{class}}{% endif %}">
- <iframe src="https://www.youtube{% if not cookie %}-nocookie{% endif %}.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" title="{{title | default(value='Youtube') }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
+ <iframe src="https://www.youtube{% if not cookie %}-nocookie{% endif %}.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" title="{{ title if title else 'Youtube' }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{% endcomponent youtube %}