Skip to content

Commit

Permalink
✨ Feat: add turnstileKey to waline
Browse files Browse the repository at this point in the history
  • Loading branch information
yureiita authored and Lruihao committed May 27, 2024
1 parent 9679c34 commit b998371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ enableEmoji = true
texRenderer = false # FixIt 0.2.16 | NEW
search = false # FixIt 0.2.16 | NEW
recaptchaV3Key = "" # FixIt 0.2.16 | NEW
turnstileKey = ""
reaction = false # FixIt 0.2.18 | NEW
# Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
[params.page.comment.facebook]
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/single/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
{{- with $waline.recaptchaV3Key -}}
{{- $commentConfig = dict "recaptchaV3Key" . | dict "waline" | merge $commentConfig -}}
{{- end -}}
{{- with $waline.turnstileKey -}}
{{- $commentConfig = dict "turnstileKey" . | dict "waline" | merge $commentConfig -}}
{{- end -}}
{{- with $waline.reaction -}}
{{- $commentConfig = dict "reaction" . | dict "waline" | merge $commentConfig -}}
{{- end -}}
Expand Down

0 comments on commit b998371

Please sign in to comment.