Add new theme

This commit is contained in:
Bjørn Erik Pedersen committed 2025-02-11 16:30:05 +01:00
1 parent b19d68ee55
commit bdf97b7b45
152 files changed
+4679 -291

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{{- /*
Renders the page using the RenderShortcode method on the Page object.
You must call this shortcode using the {{% %}} notation.
@param {string} (positional parameter 0) The path to the page, relative to the content directory.
@returns template.HTML
@example {{% include "functions/_common/glob-patterns" %}}
*/}}
{{- with .Get 0 }}
{{- with or ($.Page.GetPage .) (site.GetPage .) }}
{{- .RenderShortcodes }}
{{- else }}
{{/* TODO1 make error */}}
{{- warnf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
{{- end }}
{{- else }}
{{- errorf "The %q shortcode requires a positional parameter indicating the path of the file to include. See %s" .Name .Position }}
{{- end }}