huge upgrade to theme and pagefind search bar.
This commit is contained in:
1 parent
a6a38f7ea7
commit
235d40da0b
442 files changed
+18933
-2893
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<!--
|
||||
Returns rendered string from template and context.
|
||||
Usage: partial "docs/string-template" (dict "Template" "param={{ . }}" "Context" "Input")
|
||||
-->
|
||||
|
||||
{{- $checksum := . | encoding.Jsonify | crypto.SHA1 | printf "book-%s" -}}
|
||||
{{- $template := resources.FromString $checksum .Template -}}
|
||||
{{- $template = $template | resources.ExecuteAsTemplate $checksum .Context -}}
|
||||
{{- return $template.Content -}}
|
||||
Reference in new issue
Block a user