huge upgrade to theme and pagefind search bar.

This commit is contained in:
2026-04-17 13:28:48 -06:00
parent a6a38f7ea7
commit 235d40da0b
442 changed files with 18933 additions and 2893 deletions

View File

@@ -0,0 +1,16 @@
{{- $attributes := partial "docs/text/mapper" (dict
"attributes" (cond .IsNamedParams .Params dict)
"merge" (dict
"class" "mermaid"
)
) -}}
<pre {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
{{- .Inner | htmlEscape | safeHTML -}}
</pre>
{{- if not (.Page.Store.Get "mermaid") -}}
{{- /* Include mermaid only first time */ -}}
{{- with resources.Get "mermaid.json" | minify -}}
<script src="{{ "mermaid.min.js" | relURL }}" onload="mermaid.initialize({{ .Content | safeJS }})"></script>
{{- end -}}
{{- .Page.Store.Set "mermaid" true -}}
{{- end -}}