Skip to content

Commit

Permalink
fix: waline parameter "avatar" had been deprecated, and "placeholder"…
Browse files Browse the repository at this point in the history
… had been moved to "locale.placeholder"
  • Loading branch information
Stark-X-ZA authored and Stark-X committed Nov 12, 2023
1 parent 462d53d commit 3e932ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ comment:
valine_appKey:
valine_placeHolder:
# Waline site: https://waline.js.org/
# https://waline.js.org/reference/client/props.html#serverurl
waline_serverURL:
# https://waline.js.org/cookbook/customize/locale.html locale.placeholder
waline_placeHolder:
waline_avatar:
# https://waline.js.org/reference/client/props.html#login
waline_login:
# gitalk site: https://github.com/gitalk/gitalk/
# Value 'true' is recommended for gitalk_pathname_id setting
Expand Down
5 changes: 3 additions & 2 deletions layout/_partial/comment/waline.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
Waline.init({
el: '#comment' ,
serverURL: "<%- theme.comment.waline_serverURL %>",
placeholder: "<%- theme.comment.waline_placeHolder %>",
avatar: "<%- theme.comment.waline_avatar %>",
locale: {
placeholder: "<%- theme.comment.waline_placeHolder %>"
},
login: "<%- theme.comment.waline_login %>"
});
</script>
Expand Down

0 comments on commit 3e932ab

Please sign in to comment.