|
@@ -6,7 +6,7 @@
|
|
|
|
|
|
{{ $show_navbar := site.Params.main_menu.enable | default true }}
|
|
|
{{- $highlight_active_link := site.Params.main_menu.highlight_active_link | default true -}}
|
|
|
-<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="{{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}">
|
|
|
+<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}">
|
|
|
|
|
|
{{/* Load day/night theme. */}}
|
|
|
{{/* Initialise default theme. */}}
|
|
@@ -23,20 +23,26 @@
|
|
|
|
|
|
{{ partial "search" . }}
|
|
|
|
|
|
- {{ partial "navbar" . }}
|
|
|
-
|
|
|
- {{ block "main" . }}{{ end }}
|
|
|
+ <div class="page-header">
|
|
|
+ {{ partial "navbar" . }}
|
|
|
+ </div>
|
|
|
|
|
|
- {{ partial "site_js" . }}
|
|
|
+ <div class="page-body">
|
|
|
+ {{ block "main" . }}{{ end }}
|
|
|
+ </div>
|
|
|
|
|
|
- {{/* Docs and Updates layouts include the site footer in a different location. */}}
|
|
|
- {{ if not (in (slice "book" "docs" "updates") .Type) }}
|
|
|
- <div class="container">
|
|
|
- {{ partial "site_footer" . }}
|
|
|
+ <div class="page-footer">
|
|
|
+ {{/* Docs and Updates layouts include the site footer in a different location. */}}
|
|
|
+ {{ if not (in (slice "book" "docs" "updates") .Type) }}
|
|
|
+ <div class="container">
|
|
|
+ {{ partial "site_footer" . }}
|
|
|
+ </div>
|
|
|
+ {{ end }}
|
|
|
</div>
|
|
|
- {{ end }}
|
|
|
|
|
|
{{ partial "citation" . }}
|
|
|
|
|
|
+ {{ partial "site_js" . }}
|
|
|
+
|
|
|
</body>
|
|
|
</html>
|