feat: Add a widget for playing audio files

This commit is contained in:
Nikolai Rodionov 2023-06-23 17:36:46 +02:00
parent 0c41320637
commit d34243f43d
Signed by: allanger
GPG Key ID: 19DB54039EBF8F10
1 changed files with 6 additions and 0 deletions

View File

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