mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
Use safeJS instead of safeHTML
This commit is contained in:
parent
f8cce2189c
commit
d63c44b9e5
@ -20,10 +20,10 @@
|
|||||||
<script>
|
<script>
|
||||||
initComments({
|
initComments({
|
||||||
node: document.getElementById("comment-section"),
|
node: document.getElementById("comment-section"),
|
||||||
defaultHomeserverUrl: "{{ .defaultHomeserverUrl | safeHTML }}",
|
defaultHomeserverUrl: "{{ .defaultHomeserverUrl | safeJS }}",
|
||||||
serverName: "{{ .serverName }}",
|
serverName: "{{ .serverName }}",
|
||||||
siteName: "{{ .siteName }}",
|
siteName: "{{ .siteName }}",
|
||||||
commentSectionId: "{{ $.File.UniqueID }}"
|
commentSectionId: "{{ $.File.UniqueID }}"
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user