From 2bbbf604a98f57e44c338e747728dfe0dee58d0f Mon Sep 17 00:00:00 2001 From: matcornic Date: Sun, 20 Aug 2017 18:19:36 +0200 Subject: [PATCH] fix jumping navbar --- layouts/partials/header.html | 52 +++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 25 deletions(-) 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 }}