🐛 Fix: use function to get params replace of .Scatch (#420)

This commit is contained in:
Cell
2024-02-23 20:50:52 +08:00
parent a9fd15e47d
commit 2ea592b4a3
27 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
{{- end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
{{- $params := partial "function/params.html" -}}
{{- $toc := .Scratch.Get "toc" -}}
{{- $tocEmpty := eq .TableOfContents `<nav id="TableOfContents"></nav>` -}}