fix jumping navbar

This commit is contained in:
matcornic 2017-08-20 18:19:36 +02:00
parent aff3307ff5
commit 2bbbf604a9

View file

@ -41,6 +41,7 @@
<div id="overlay"></div> <div id="overlay"></div>
<div class="padding highlightable sticky-parent"> <div class="padding highlightable sticky-parent">
{{if not .IsHome}} {{if not .IsHome}}
<div class="sticky-spacer">
<div id="top-bar"> <div id="top-bar">
{{ if and (or .IsPage .IsSection) .Site.Params.editURL }} {{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
{{ $File := .File }} {{ $File := .File }}
@ -72,6 +73,7 @@
{{ partial "toc.html" . }} {{ partial "toc.html" . }}
{{ end }} {{ end }}
</div> </div>
</div>
{{ end }} {{ end }}
{{ if .Params.chapter }} {{ if .Params.chapter }}