mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
fix: waline client config
This commit is contained in:
parent
4e1f769893
commit
10b3ae55a5
@ -67,18 +67,17 @@ params:
|
|||||||
clientId:
|
clientId:
|
||||||
clientSecret:
|
clientSecret:
|
||||||
|
|
||||||
# Waline 前端配置参见 https://waline.js.org/client/basic.html
|
# Waline 前端配置参见 https://waline.js.org/reference/client.html
|
||||||
# Waline client configuration see: https://waline.js.org/en/client/basic.html
|
# Waline client configuration see: https://waline.js.org/en/reference/client.html
|
||||||
waline:
|
waline:
|
||||||
serverURL:
|
serverURL:
|
||||||
placeholder:
|
lang:
|
||||||
wordLimit:
|
visitor:
|
||||||
avatar:
|
avatar:
|
||||||
avatarCDN:
|
emoji:
|
||||||
emojiCDN:
|
|
||||||
guest_info: "nick,mail,link"
|
|
||||||
requiredFields:
|
|
||||||
admin:
|
admin:
|
||||||
|
requiredMeta:
|
||||||
|
placeholder:
|
||||||
|
|
||||||
widgets:
|
widgets:
|
||||||
enabled:
|
enabled:
|
||||||
|
@ -11,20 +11,20 @@
|
|||||||
|
|
||||||
{{- with .Site.Params.comments.waline -}}
|
{{- with .Site.Params.comments.waline -}}
|
||||||
<script>
|
<script>
|
||||||
// 本页配置参见 https://waline.js.org/client/basic.html
|
// 本页配置参见 https://waline.js.org/reference/client.html
|
||||||
// Waline client configuration see: https://waline.js.org/en/client/basic.html
|
// Waline client configuration see: https://waline.js.org/en/reference/client.html
|
||||||
new Waline({
|
new Waline({
|
||||||
el: '#waline',
|
el: '#waline',
|
||||||
serverURL: '{{ .serverURL }}',
|
serverURL: '{{ .serverURL }}',
|
||||||
placeholder: '{{ .placeholder }}',
|
lang: '{{ .lang }}',
|
||||||
wordLimit: '{{ .wordLimit }}',
|
visitor: '{{ .visitor }}',
|
||||||
avatar: '{{ .avatar }}',
|
avatar: '{{ .avatar }}',
|
||||||
avatarCDN: '{{ .avatarCDN }}',
|
emoji: ['{{ .emoji }}'],
|
||||||
emojiCDN: '{{ .emojiCDN }}',
|
dark: 'body[data-scheme="dark"]',
|
||||||
guest_info: '{{ .guest_info }}',
|
requiredMeta: ['{{ .requiredMeta }}'],
|
||||||
requiredFields: '{{ .requiredFields }}',
|
locale: {
|
||||||
langMode: {
|
admin: '{{ .admin }}',
|
||||||
admin: '{{ .admin }}'
|
placeholder: '{{ .placeholder }}',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user