summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authoramzrk22021-01-10 21:11:57 +0800
committeramzrk22021-01-10 21:11:57 +0800
commite5b7e226f064268686c9799e9e54910e3b83b38b (patch)
treed1792315f4419034f2557f06fca5620f4060bd94 /layouts/shortcodes
parent1500c3c475e0ff99e6693dd11118e1a937b9ff34 (diff)
downloadhugo-theme-fuji-e5b7e226f064268686c9799e9e54910e3b83b38b.tar.gz
hugo-theme-fuji-e5b7e226f064268686c9799e9e54910e3b83b38b.tar.bz2
hugo-theme-fuji-e5b7e226f064268686c9799e9e54910e3b83b38b.zip
new: in-post aplayer support
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/aplayer.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/aplayer.html b/layouts/shortcodes/aplayer.html
new file mode 100644
index 0000000..12ab16c
--- /dev/null
+++ b/layouts/shortcodes/aplayer.html
@@ -0,0 +1,9 @@
+<div class="post-player-wrapper">
+ <div
+ class="post-aplayer"
+ data-urls="{{- .Get "urls" | relURL -}}"
+ data-names="{{- .Get "names" -}}"
+ {{ with .Get "artists" -}}data-artists="{{- . -}}"{{- end }}
+ {{ with .Get "covers" -}}data-covers="{{- . | relURL -}}"{{- end }}
+ ></div>
+</div> \ No newline at end of file