summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-11-21 19:06:16 +0800
committerMole Shang <[email protected]>2023-11-21 19:06:16 +0800
commitaf73327f5cd282660b4bd15e3139bb775858370b (patch)
treebce54b188c8780cc955838cf410688ba5c88b7c6
parent6ebb875b7f83dc910aef240e58b7062886321e3c (diff)
downloadSeje2-af73327f5cd282660b4bd15e3139bb775858370b.tar.gz
Seje2-af73327f5cd282660b4bd15e3139bb775858370b.tar.bz2
Seje2-af73327f5cd282660b4bd15e3139bb775858370b.zip
templates/shortcodes/shikwasa: do not escape url in {image,media}
-rw-r--r--templates/shortcodes/shikwasa.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/shortcodes/shikwasa.html b/templates/shortcodes/shikwasa.html
index 10ac1d7..93c4601 100644
--- a/templates/shortcodes/shikwasa.html
+++ b/templates/shortcodes/shikwasa.html
@@ -1,14 +1,17 @@
+<link
+ rel="stylesheet"
+ href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.css"
+/>
+<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script>
<div class="podcast">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.css"/>
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script>
<script>
const player = new Shikwasa.Player({
container: () => document.querySelector(".podcast"),
audio: {
title: "{{subtitle}}",
artist: "{{author}}",
- cover: "{{image}}",
- src: "{{media}}",
+ cover: "{{image | safe}}",
+ src: "{{media | safe}}",
},
fixed: {
type: "static",