Skip to content

Commit

Permalink
Update podcast.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hehbveh authored Dec 26, 2024
1 parent cf2bbd1 commit 4f7a6ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _layouts/podcast.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@ <h2>
</h2>

<section>
{% if page.mp3-url %}
<audio class="podcast" preload="auto" controls>
<source
src="{% if page.mp3-url contains 'http' %}{{ page.mp3-url }}{% else %}{{ site.url | append: site.baseurl | append: page.mp3-url }}{% endif %}"
type="audio/mp3" />
</audio>
{% endif %}

{% if page.mp4-url %}
<video class="podcast-video" preload="auto" controls>
<source
src="{% if page.mp4-url contains 'http' %}{{ page.mp4-url }}{% else %}{{ site.url | append: site.baseurl | append: page.mp4-url }}{% endif %}"
type="video/mp4" />
Your browser does not support the video element.
</video>
{% endif %}
</section>

<h3>Notes</h3>
Expand Down

0 comments on commit 4f7a6ca

Please sign in to comment.