source:
tanzpartie-hugo/layouts/shortcodes/audio.html
| Last change on this file was 16975, checked in by , 4 years ago | |
|---|---|
| File size: 301 bytes | |
| Rev | Line | |
|---|---|---|
| [16975] | 1 | <figure {{ with .Get "class" }}class="{{ . }}"{{ end }}> |
| 2 | <audio controls preload="{{ .Get "preload" | default "metadata" }}"> | |
| 3 | {{ with .Get "src" }}<source src="{{ . | relURL }}" type="audio/mpeg">{{ end }} | |
| 4 | </audio> | |
| 5 | {{ with .Get "caption" }}<figcaption>{{ . }}</figcaption>{{ end }} | |
| 6 | </figure> |
Note: See TracBrowser for help on using the repository browser.
