Browse Source

Premier commit

master
Aris 4 months ago
parent
commit
3949acea12
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      bandcamp.html

+ 22
- 0
bandcamp.html View File

@ -0,0 +1,22 @@
{{- $id := .Get "id" -}}
{{- with .Get "layout" -}}
{{- if eq . "small" -}}
<iframe style="border: 0; width: 100%; height: 42px;"
src="https://bandcamp.com/EmbeddedPlayer/track={{ $id }}/size=small/bgcol=ffffff/linkcol=0687f5/transparent=true/">
</iframe>
{{- else if eq . "large" -}}
<iframe
style="border: 0; width: 100%; height: 120px;"
src="https://bandcamp.com/EmbeddedPlayer/track={{ $id }}/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/artwork=small/transparent=true/">
</iframe>
{{- else if eq . "card" -}}
<iframe style="border: 0; width: 350px; height: 442px;"
src="https://bandcamp.com/EmbeddedPlayer/track={{ $id }}/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/transparent=true/">
</iframe>
{{- else if eq . "image" -}}
<iframe
style="border: 0; width: 350px; height: 350px;"
src="https://bandcamp.com/EmbeddedPlayer/track={{ $id }}/size=large/bgcol=ffffff/linkcol=0687f5/minimal=true/transparent=true/">
</iframe>
{{- end -}}
{{- end -}}

Loading…
Cancel
Save