feat: Add a widget for playing audio files
This commit is contained in:
parent
0c41320637
commit
d34243f43d
6
src/layouts/shortcodes/audio.html
Normal file
6
src/layouts/shortcodes/audio.html
Normal 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>
|
Reference in New Issue
Block a user