refactor templates layout
@see https://gohugo.io/templates/new-templatesystem-overview/
This commit is contained in:
parent
a83f339dc8
commit
230c46411b
102 changed files with 2 additions and 2 deletions
12
layouts/_partials/media/audio.html
Normal file
12
layouts/_partials/media/audio.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!--
|
||||
Render an audio track in an interactive player.
|
||||
|
||||
@params context The audio media file.
|
||||
-->
|
||||
|
||||
{{- $src := . -}}
|
||||
|
||||
<audio class="u-audio figure__audio" itemprop="audio" controls>
|
||||
<source src="{{ $src.RelPermalink }}" type="{{ $src.MediaType }}" />
|
||||
<p>Your browser doesn't support embedded audio, <a href="{{ $src.RelPermalink }}">view the audio here</a>.</p>
|
||||
</audio>
|
Loading…
Add table
Add a link
Reference in a new issue