mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:12:03 +08:00
fix jumping navbar
This commit is contained in:
parent
aff3307ff5
commit
2bbbf604a9
@ -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…
x
Reference in New Issue
Block a user