mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
content: Consolidate configuration documentation
This commit is contained in:
1 parent
727ef6f665
commit
b6cae5cbc6
911 files changed
+10902
-11171
No files matched your search
@@ -5,17 +5,15 @@ 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" %}}
|
||||
*/}}
|
||||
*/ -}}
|
||||
{{/* prettier-ignore-end */ -}}
|
||||
{{- 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 }}
|
||||
{{- errorf "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 }}
|
||||
|
||||
Reference in new issue
Block a user