diff --git a/layouts/shortcodes/spotify.html b/layouts/shortcodes/spotify.html
index 5d3ae2b..da3a520 100644
--- a/layouts/shortcodes/spotify.html
+++ b/layouts/shortcodes/spotify.html
@@ -13,25 +13,25 @@
View playlist on Spotify
- |
Track |
Artist |
Album |
+ |
{{ range sort $playlist.tracks "name" }}
-
-
-
-
- |
{{ .name }} |
{{ range $i, $e := .artists }}{{ if $i }}, {{ end }}{{ .name }}{{ end }}
|
{{ .album.name }} |
+
+
+ |
{{ end }}
diff --git a/package.json b/package.json
index 9558022..d2672ad 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"jquery": "3.2.1",
"lg-thumbnail": "1.0.3",
"lightgallery": "1.4.0",
+ "plyr": "2.0.17",
"tstatic": "1.1.0"
}
}
diff --git a/static/src/js/index.js b/static/src/js/index.js
index 0c429ef..2875638 100644
--- a/static/src/js/index.js
+++ b/static/src/js/index.js
@@ -6,6 +6,13 @@ require('bootstrap');
require('lightgallery/dist/js/lightgallery');
require('lg-thumbnail/dist/lg-thumbnail');
+require('plyr').setup({
+ controls: [
+ 'play',
+ 'progress'
+ ]
+});
+
$('.image').each(function () { // setup div-image hybrids
var ele = $(this);
diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss
index b327f14..8ee68a5 100644
--- a/static/src/scss/style.scss
+++ b/static/src/scss/style.scss
@@ -5,6 +5,7 @@ $fa-font-path: "../fonts";
@import "node_modules/lightgallery/src/sass/lightgallery";
@import "node_modules/bootstrap/scss/bootstrap";
+@import "node_modules/plyr/src/scss/plyr";
$primary: #E89980;
$orange: #FF7F00;
@@ -168,3 +169,7 @@ pre.chroma {
margin-top: $spacer;
}
}
+
+.plyr {
+ min-width: initial;
+}