{{ $name := (.Get "name") -}} {{- $opus := resources.GetMatch (printf "/a/%s.opus" $name) -}} {{- $mp3 := resources.GetMatch (printf "/a/%s.mp3" $name) -}} {{- $isTranscribed := false -}} {{- $download_url := "" -}} {{- /* preloading an in-page audio asset under 32 KiB is fine. */ -}} {{- $shouldPreload := lt (len $opus.Content) 32768 -}} {{ with $opus -}} {{- $download_url = $opus.RelPermalink -}} {{ $opus_src := . | resources.Fingerprint "md5" -}} {{ end -}} {{ with $mp3 -}} {{- $download_url = $mp3.RelPermalink -}} {{ $mp3_src := . | resources.Fingerprint "md5" -}} Your browser does not support HTML5 audio. {{ end -}} Download audio file {{ $name }}.mp3 {{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
Your browser does not support HTML5 audio.