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
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

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>