Skip to content

Commit

Permalink
⚡ Perf: add loadingText params for AI summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 25, 2024
1 parent 03b3bfb commit 72baedd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ enableEmoji = true
wordLimit = 1000
typingAnimate = true
beginningText = ""
loadingText = true

# FixIt 0.3.10 | NEW Global Feed config for RSS, Atom and JSON feed.
[params.feed]
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.17-33a8861e" -}}
{{- .Scratch.Set "version" "v0.3.17-03b3bfbd" -}}
{{- .Scratch.Set "this" dict -}}

{{- partial "init/detection-env.html" . -}}
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/plugin/post-chat-ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
{{- with $summaryConfig.beginningText -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_BeginningText='%v';" $p .) -}}
{{- end -}}
{{- with eq $summaryConfig.loadingText false -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_loadingText=false;" $p) -}}
{{- end -}}
{{- if $chatConfig.enable -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_recommendation=true;" $p) -}}
{{- else -}}
Expand Down

0 comments on commit 72baedd

Please sign in to comment.