alex.racine/themes/portfoliGor/layouts/shortcodes/audio.html

18 lines
746 B
HTML
Raw Normal View History

<figure class="audio">
<figcaption>
<p>{{ .Get "legend" }} /
<a href="/medias/{{ .Get "src" }}.opus" class="smallcaps">opus</a> /
<a href="/medias/{{ .Get "src" }}.ogg" class="smallcaps">ogg</a> /
<a href="/medias/{{ .Get "src" }}.mp3" class="smallcaps">mp3</a>
</p>
</figcaption>
<audio controls preload="metadata">
<source src="/medias/{{ .Get "src" }}.opus" type="audio/opus" codecs="opus">
<source src="/medias/{{ .Get "src" }}.ogg" type="audio/ogg" codecs="vorbis">
<source src="/medias/{{ .Get "src" }}.mp3" type="audio/mpeg">
{{ i18n "audioDownload" }} <a href="/medias/{{ .Get "src"}}.mp3">
{{ i18n "thisLink"}}
</a>
</audio>
</figure>