diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/scripts-end.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/aplayer.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html index 6db0f43..82388cf 100644 --- a/layouts/partials/scripts-end.html +++ b/layouts/partials/scripts-end.html @@ -23,7 +23,7 @@ pContainers.forEach(function (container) { var attrs = ['urls', 'names', 'artists', 'covers']; attrs = attrs.map(function (attr) { - var arr = container.getAttribute('data-' + attr).split(','); + var arr = container.getAttribute('data-' + attr).replace(/( |%20)/ig, '').split(','); if (arr.length > 0){ return arr.map(function (val) { return String(val).trim(); diff --git a/layouts/shortcodes/aplayer.html b/layouts/shortcodes/aplayer.html index 12ab16c..ac56aaa 100644 --- a/layouts/shortcodes/aplayer.html +++ b/layouts/shortcodes/aplayer.html @@ -1,9 +1,9 @@ <div class="post-player-wrapper"> <div class="post-aplayer" - data-urls="{{- .Get "urls" | relURL -}}" + data-urls="{{- .Get "urls" -}}" data-names="{{- .Get "names" -}}" {{ with .Get "artists" -}}data-artists="{{- . -}}"{{- end }} - {{ with .Get "covers" -}}data-covers="{{- . | relURL -}}"{{- end }} + {{ with .Get "covers" -}}data-covers="{{- . -}}"{{- end }} ></div> </div>
\ No newline at end of file |