fix(post-chat-ai): correct variable name for upLoadWeb in postChatConfig

This commit is contained in:
Cell
2026-08-19 09:52:20 +08:00
parent e0940bd4d3
commit 224621b114
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
Called from: layouts/baseof.html. Called from: layouts/baseof.html.
*/ -}} */ -}}
{{- hugo.Store.Set "version" "v1.0.0-alpha-mspj0oak" -}} {{- hugo.Store.Set "version" "v1.0.0-alpha-mszfs8xu" -}}
{{- .Store.Set "this" dict -}} {{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}} {{- partial "init/detection-env.html" . -}}
+1 -1
View File
@@ -80,7 +80,7 @@
{{- with $chatConfig.blackDom -}} {{- with $chatConfig.blackDom -}}
{{- $blackDom = $blackDom | append . -}} {{- $blackDom = $blackDom | append . -}}
{{- end -}} {{- end -}}
{{- $upLoadWeb := cond (.IsHome | or $password | or (eq .Kind "404")) false $chatConfig.upLoadWeb -}} {{- $upLoadWeb := cond (.IsHome | or $password | or (eq .Kind "404")) false $chatConfig.uploadWeb -}}
{{- $postChatConfig := dict "upLoadWeb" $upLoadWeb "blackDom" $blackDom | merge $chatConfig -}} {{- $postChatConfig := dict "upLoadWeb" $upLoadWeb "blackDom" $blackDom | merge $chatConfig -}}
{{- $configJS = add $configJS ($postChatConfig | jsonify | printf "var postChatConfig=%s") -}} {{- $configJS = add $configJS ($postChatConfig | jsonify | printf "var postChatConfig=%s") -}}
{{- end -}} {{- end -}}