Skip to content

Commit 863ee99

Browse files
authored
Move the deferred template call to baseof.html (#785)
1 parent 8ab55c2 commit 863ee99

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

site/themes/arangodb-docs-theme/layouts/_default/baseof.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@
2727
{{ if $isProduction }}{{ partialCached "tracking/body-end.html" . }}{{ end -}}
2828
</body>
2929
</html>
30+
{{- /* Trigger validation at the end of the build once */ -}}
31+
{{ if .IsHome -}}
32+
{{ with templates.Defer -}}
33+
{{ partial "openapi-validate.html" (dict "key" "global") -}}
34+
{{ end -}}
35+
{{ end -}}

site/themes/arangodb-docs-theme/layouts/_default/home.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ <h1>{{ .Title | markdownify }}</h1>
1010
{{ .Content | safeHTML }}
1111
</article>
1212
{{- end -}}
13-
{{/* Trigger validation at the end of the build (kind "home" is called once) */ -}}
14-
{{ with templates.Defer -}}
15-
{{ partial "openapi-validate.html" -}}
16-
{{ end -}}
1713
{{ end -}}

0 commit comments

Comments
 (0)