diff --git a/layouts/shortcodes/spotify.html b/layouts/shortcodes/spotify.html new file mode 100644 index 0000000..7a634da --- /dev/null +++ b/layouts/shortcodes/spotify.html @@ -0,0 +1,41 @@ +{{ $ident := .Get 0 }} + +{{ $playlist := getJSON "http://spotify-public-proxy.theorangeone.net/playlist/" $ident }} + +
+ | Track | +Artist | +Album | +
---|---|---|---|
+ + + + | +{{ .name }} | ++ {{ range $i, $e := .artists }}{{ if $i }}, {{ end }}{{ .name }}{{ end }} + | +{{ .album.name }} | +
+ View playlist on Spotify + |