13 lines
No EOL
489 B
HTML
13 lines
No EOL
489 B
HTML
{{/* this is used to embed specified audio(with full url) with player
|
|
|
|
the official document and reference:
|
|
- https://gohugo.io/content-management/shortcodes/
|
|
- https://gohugo.io/templates/shortcode-templates/
|
|
|
|
usage:
|
|
{{< embed-specified-audio-with-player https://ting-2022.shufang.org/10-years-trailer.mp3 >}}
|
|
*/}}
|
|
|
|
<audio controls="">
|
|
<source src="{{ $.Page.Site.Params.statsPrefix }}{{ .Get 1 }}" type="audio/mpeg">
|
|
<embed src="{{ $.Page.Site.Params.statsPrefix }}{{ .Get 1 }}"></audio> |