diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html new file mode 100644 index 000000000..076f46dda --- /dev/null +++ b/docs/layouts/_default/baseof.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +{{ if .Params.toc }} +
+{{block "main" .}}{{end}} +
+
+ {{ .TableOfContents }} +
+{{ else }} +{{block "main" .}}{{end}} +{{ end }} +{{ partial "footer.html" . }} diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index 702014061..b8bcfa70c 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -1,12 +1 @@ -{{ partial "header.html" . }} -{{ if .Params.toc }} -
-{{ .Content }} -
-
- {{ .TableOfContents }} -
-{{ else }} -{{ .Content }} -{{ end }} -{{ partial "footer.html" . }} +{{ define "main" }}{{ .Content }}{{ end }}