mirror of https://github.com/crossplane/docs.git
ensure include file exists or error
Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
parent
aaeaa47af5
commit
f86a1b3d82
|
@ -4,6 +4,11 @@
|
|||
{{ $language := .Get "language" }}
|
||||
{{ $options :=.Get "options" }}
|
||||
|
||||
{{ if eq $type "page" }}
|
||||
{{ if not $page }}
|
||||
{{ errorf "Couldn't find include file %s in page %s" $file .Position }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<div class="gdoc-include">
|
||||
{{- if (.Get "language") -}}
|
||||
|
|
Loading…
Reference in New Issue