Skip to content

Commit

Permalink
Enhance: Attempt direct play if no podcast_file is given
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceM committed Sep 14, 2023
1 parent e7cfcc7 commit 286411f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions themes/jb/layouts/episode/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ <h6 style="font-style: italic">{{ .Date.Day }} {{ .Date.Month }} {{ .Date.Year
</center>
</div>
</div>
{{ if .Params.podcast_file }}
{{ partial "episode/podverseplayer.html" . }}
{{else}}
<div>
<audio controls class="my-4" style="width: 100%;">
<source src='{{ .Params.podcast_ogg_file }}' type="audio/ogg">
<source src='{{ .Params.podcast_alt_file }}' type="audio/mpeg">
</audio>
</div>
{{ end }}

{{ partial "episode/downloadlinks.html" . }}

Expand Down

0 comments on commit 286411f

Please sign in to comment.