source: tanzpartie-hugo/layouts/shortcodes/spotify.html @ 17080

Last change on this file since 17080 was 16975, checked in by Henrik Bettermann, 2 years ago

Sicherung 2

File size: 735 bytes
Line 
1<!--
2Parameters:
3    type - (Required) album / track / playlist / artist
4    id - (Required) Target ID
5    width - (Optional) width
6    height - (Optional) height
7-->
8<figure>
9{{ if .IsNamedParams }}
10<iframe src="https://open.spotify.com/embed/{{ .Get "type" }}/{{ .Get "id" }}"
11    width="{{ default "100%" (.Get "width") }}"
12    height="{{ default "380" (.Get "height") }}"
13    frameborder="0"
14    allowtransparency="true"
15    allow="encrypted-media"></iframe>
16{{ else }}
17<iframe src="https://open.spotify.com/embed/{{ .Get 0 }}/{{ .Get 1 }}"
18    width="{{ default "100%" (.Get 2) }}"
19    height="{{ default "380" (.Get 3) }}"
20    frameborder="0"
21    allowtransparency="true"
22    allow="encrypted-media"></iframe>
23{{ end }}
24</figure>
Note: See TracBrowser for help on using the repository browser.