source:
tanzpartie-hugo/themes/bilberry-hugo-theme/layouts/shortcodes/audio.html
@
16971
Last change on this file since 16971 was 16971, checked in by , 3 years ago | |
---|---|
File size: 217 bytes |
Rev | Line | |
---|---|---|
[16971] | 1 | {{ $type := .Get "type" }} |
2 | {{ if eq $type "audiofile"}} | |
3 | {{ partial "audio-embed" (dict "type" $type "url" (.Get "url")) }} | |
4 | {{ else }} | |
5 | {{ partial "audio-embed" (dict "type" $type "id" (.Get "id")) }} | |
6 | {{ end }} |
Note: See TracBrowser for help on using the repository browser.