This commit is contained in:
Speyll
2022-11-21 22:15:50 +01:00
parent b6b4a9ce6e
commit ba684522ce
37 changed files with 679 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
<audio loop controls preload="{{ .Get "preload" | default "metadata" }}">
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="audio/mpeg">{{ end }}
{{ with .Get "caption" }}<figcaption>{{ . }}</figcaption>{{ end }}
</audio>
</figure>