diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 51a5f12846..0d6bac6406 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -41,36 +41,38 @@
{{if not .IsHome}} -
- {{ if and (or .IsPage .IsSection) .Site.Params.editURL }} - {{ $File := .File }} - {{ $Site := .Site }} - {{with $File.Path }} - +
+
+ {{ if and (or .IsPage .IsSection) .Site.Params.editURL }} + {{ $File := .File }} + {{ $Site := .Site }} + {{with $File.Path }} + + {{ end }} {{ end }} - {{ end }} - {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}} - - {{ if $toc }} - {{ partial "toc.html" . }} - {{ end }}
{{ end }}