Add a feature flag for using the native HTML audio
...player element
This commit is contained in:
parent
c8477d4a8a
commit
b9f66b5b07
|
@ -311,6 +311,8 @@ transistor:
|
||||||
share:
|
share:
|
||||||
url: https://share.transistor.fm/e
|
url: https://share.transistor.fm/e
|
||||||
|
|
||||||
|
use_transistor: false
|
||||||
|
|
||||||
youtube:
|
youtube:
|
||||||
channel:
|
channel:
|
||||||
slug: opdavies
|
slug: opdavies
|
||||||
|
|
|
@ -3,3 +3,5 @@ imports:
|
||||||
- sculpin_site.yml
|
- sculpin_site.yml
|
||||||
|
|
||||||
url: https://www.oliverdavies.uk
|
url: https://www.oliverdavies.uk
|
||||||
|
|
||||||
|
use_transistor: true
|
||||||
|
|
|
@ -19,17 +19,23 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content_wrapper %}
|
{% block content_wrapper %}
|
||||||
{% if page.transistor.id %}
|
{% if site.use_transistor %}
|
||||||
<div>
|
{% if page.transistor.id %}
|
||||||
<iframe
|
<div>
|
||||||
width="100%"
|
<iframe
|
||||||
height="180"
|
width="100%"
|
||||||
frameborder="no"
|
height="180"
|
||||||
scrolling="no"
|
frameborder="no"
|
||||||
seamless=""
|
scrolling="no"
|
||||||
src="{{ site.transistor.share.url }}/{{ page.transistor.id }}">
|
seamless=""
|
||||||
</iframe>
|
src="{{ site.transistor.share.url }}/{{ page.transistor.id }}">
|
||||||
</div>
|
</iframe>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<audio controls>
|
||||||
|
<source src="/files/bb/episodes/{{ page.episode_filename }}" type="audio/mp3">
|
||||||
|
</audio>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
|
|
Loading…
Reference in a new issue