diff options
author | amzrk2 | 2021-01-10 21:26:31 +0800 |
---|---|---|
committer | amzrk2 | 2021-01-10 21:26:31 +0800 |
commit | af900964055860ef29f4ad6140d6b3be66e60c7f (patch) | |
tree | 5e6217f2e746619e90026e6f8c62d2bbc59d115a /layouts | |
parent | e5b7e226f064268686c9799e9e54910e3b83b38b (diff) | |
download | hugo-theme-fuji-af900964055860ef29f4ad6140d6b3be66e60c7f.tar.gz hugo-theme-fuji-af900964055860ef29f4ad6140d6b3be66e60c7f.tar.bz2 hugo-theme-fuji-af900964055860ef29f4ad6140d6b3be66e60c7f.zip |
release: v2.5.0
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 |