diff options
Diffstat (limited to 'layouts/single.html')
| -rw-r--r-- | layouts/single.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/single.html b/layouts/single.html index 9a8c8ae..e7522a0 100644 --- a/layouts/single.html +++ b/layouts/single.html @@ -7,6 +7,12 @@ <h1 id="{{ .File.TranslationBaseName }}" class="entry__heading">{{ .Title }}</h1> {{- if (.Page.Params.pageinfo | default true) }} <p class="entry__pageinfo">{{ partial "pageinfo.html" . }}</p> + {{- end -}} + {{ with index (where .Resources "MediaType.MainType" "audio") 0 }} + <audio class="entry__audio" controls preload="metadata" aria-label="{{ i18n "audioVersion" $.Title }}"> + <source src="{{ .RelPermalink }}" type="{{ .MediaType }}"> + {{ i18n "audioUnsupported" }} + </audio> {{- end }} </div> {{ chomp (.Content) }} |
