|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
{{ partial "site_head" . }}
|
|
|
|
|
|
-{{ $show_navbar := site.Params.header.navbar.enable | default true }}
|
|
|
+{{ $show_navbar := ((site.Params.header.navbar.enable | default true) | and (ne .Params.header.navbar.enable false)) | or .Params.header.navbar.enable }}
|
|
|
{{- $highlight_active_link := site.Params.header.navbar.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="page-wrapper {{with .Params.design.css_class}}{{.}}{{end}} {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}" {{with .File}}data-wc-page-id="{{.File.UniqueID}}"{{end}} {{with .Params.design.css_style}}style="{{. | safeCSS}}"{{end}}>
|
|
|
|