Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramzrk2 <amzrk2@outlook.com>2021-01-10 16:26:31 +0300
committeramzrk2 <amzrk2@outlook.com>2021-01-10 16:26:31 +0300
commitaf900964055860ef29f4ad6140d6b3be66e60c7f (patch)
tree5e6217f2e746619e90026e6f8c62d2bbc59d115a /layouts
parente5b7e226f064268686c9799e9e54910e3b83b38b (diff)
release: v2.5.0
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/scripts-end.html2
-rw-r--r--layouts/shortcodes/aplayer.html4
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