Skip to content
Permalink
Browse files

Slightly better bandcamp shortcode

  • Loading branch information...
TheBiggerGuy committed Mar 3, 2019
1 parent 98da726 commit e222c42f6615cf1120a83e07ee7be0133277cd9f
Showing with 4 additions and 7 deletions.
  1. +1 −1 site/content/_index.md
  2. +3 −6 site/layouts/shortcodes/bandcamp.html
@@ -26,4 +26,4 @@ In their brief existence so far they have performed at Aberdeen, Edinburgh, Dund
<i>New Orleans Wiggle</i> by <i>Tenement Jazz Band</i> now available from <a href="https://tenementjazzband.bandcamp.com/releases"><span class="fab fa-bandcamp"></span>/TenementJazzBand</a>.
</p>

{{< bandcamp 1900500612 "mx-auto embeded-bootcamp-iframe" >}}
{{< bandcamp album="1900500612" class="mx-auto embeded-bootcamp-iframe" href="http://tenementjazzband.bandcamp.com/album/new-orleans-wiggle" alt="New Orleans Wiggle by Tenement Jazz Band" >}}
@@ -1,6 +1,3 @@
{{ $album_id := .Get 0 }}
{{ $css_class := .Get 1 }}

<iframe src="https://bandcamp.com/EmbeddedPlayer/album={{ $album_id }}/size=large/bgcol=ffffff/linkcol=0687f5/artwork=small/transparent=true/" class="{{ $css_class }}" seamless>
<a href="http://tenementjazzband.bandcamp.com/album/new-orleans-wiggle">New Orleans Wiggle by Tenement Jazz Band</a>
</iframe>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album={{ .Get "album" }}/size=large/bgcol=ffffff/linkcol=0687f5/artwork=small/transparent=true/" {{ with .Get "class"}}class="{{.}}"{{ end }} seamless>
<a href="{{ .Get "href" }}">{{ .Get "alt" }}</a>
</iframe>

0 comments on commit e222c42

Please sign in to comment.
You can’t perform that action at this time.