Files
FixIt/layouts/_partials/scratch/script.html
T
Cell 3e8bdfd8f9 ♻️ Refactor: global/site/page scope state management (#610)
*  Perf: adjust global/site scope state management

*  Perf: adjust page scope state management
2025-07-03 12:48:32 +08:00

6 lines
223 B
HTML

{{- $noop := .Page.WordCount -}}
{{- $this := .Page.Store.Get "this" -}}
{{- $script := $this.script | default slice -}}
{{- $script = $script | append (slice .Data) -}}
{{- .Page.Store.SetInMap "this" "script" $script -}}