mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
5322a15ceb
Add `{{/* ... */}}` header comments to 25 partials that had no documentation,
enabling `pnpm gen:docs` to generate their reference docs. Also fix
base/head/index.html leading blank line that prevented parser matching.
Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root).
14 lines
470 B
HTML
14 lines
470 B
HTML
{{- /*
|
|
Script accumulation store partial.
|
|
|
|
Appends a script resource entry to the page's accumulated script list.
|
|
Used by other partials to register JS assets that are rendered together
|
|
at the end of the page via base/assets.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 -}}
|