mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-25 15:58:55 +00:00
⚡ Perf(PostChat): disable auto load content in 404 kind pages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- .Scratch.Set "version" "v0.3.17-036cbb41" -}}
|
||||
{{- .Scratch.Set "version" "v0.3.17-d3cb08f5" -}}
|
||||
{{- .Scratch.Set "this" dict -}}
|
||||
|
||||
{{- partial "init/detection-env.html" . -}}
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
{{- with $chatConfig.blackDom -}}
|
||||
{{- $blackDom = $blackDom | append . -}}
|
||||
{{- end -}}
|
||||
{{- $upLoadWeb := cond (.IsHome | or $password) false $chatConfig.upLoadWeb -}}
|
||||
{{- $upLoadWeb := cond (.IsHome | or $password | or (eq .Kind "404")) false $chatConfig.upLoadWeb -}}
|
||||
{{- $postChatConfig := dict
|
||||
"userMode" $chatConfig.userMode
|
||||
"defaultInput" $chatConfig.defaultInput
|
||||
|
||||
Reference in New Issue
Block a user