Add alt=de for podcast download url

FIX #34
This commit is contained in:
L3D 2021-04-06 22:32:01 +02:00
parent afc718aa7d
commit f893267eb7
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1

View File

@ -26,10 +26,10 @@
<div class="pod_ctrl_box">
<audio controls class="pod_ctrl_box__audio_controls">
{% if post.podcastogg -%}
<source src="{{ post|url}}{{ post.podcastogg }}" type="audio/ogg">
<source src="{{ post|url(alt='de')}}{{ post.podcastogg }}" type="audio/ogg">
{%- endif %}
{% if post.podcastmp3 -%}
<source src="{{ post|url }}{{ post.podcastmp3 }}" type="audio/mpeg">
<source src="{{ post|url(alt='de') }}{{ post.podcastmp3 }}" type="audio/mpeg">
{%- endif %}
Your browser does not support the audio element.
</audio>
@ -41,16 +41,16 @@
<div class="content__inner_half_box">
<audio controls>
{% if post.podcastogg -%}
<source src="{{ post.podcastogg|url }}" type="audio/ogg">
<source src="{{ post.podcastogg|url(alt='de') }}" type="audio/ogg">
{%- endif %}
{% if post.podcastmp3 %}
<source src="{{ post.podcastmp3|url }}" type="audio/mpeg">
<source src="{{ post.podcastmp3|url(alt='de') }}" type="audio/mpeg">
{%- endif %}
Your browser does not support the audio element.
</audio>
<br/>
{% if post.podcastmp3 -%}
<a class="" href="{{ post.podcastmp3|url }}" download>
<a class="" href="{{ post.podcastmp3|url(alt='de') }}" download>
{%- if post.podcasttitle -%}
{{ post.podcasttitle }}
{%- else -%}
@ -60,7 +60,7 @@
</a>
{% endif %}
{% if post.podcastogg -%}
<a class="" href="{{ post.podcastogg|url }}" download>
<a class="" href="{{ post.podcastogg|url(alt='de') }}" download>
{%- if post.podcasttitle -%}
{{ post.podcasttitle }}
{%- else -%}