diff options
author | amzrk2 | 2021-01-10 21:11:57 +0800 |
---|---|---|
committer | amzrk2 | 2021-01-10 21:11:57 +0800 |
commit | e5b7e226f064268686c9799e9e54910e3b83b38b (patch) | |
tree | d1792315f4419034f2557f06fca5620f4060bd94 /layouts/shortcodes | |
parent | 1500c3c475e0ff99e6693dd11118e1a937b9ff34 (diff) | |
download | hugo-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.html | 9 |
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 |