mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
fix jumping navbar
This commit is contained in:
parent
aff3307ff5
commit
2bbbf604a9
1 changed files with 27 additions and 25 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue