mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-30 22:45:19 -04:00
menu : save menu scroll position in localstorage
(ux improve)
This commit is contained in:
parent
274688f238
commit
e17d61b46c
2 changed files with 9 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
<p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
|
||||
{{- end }}
|
||||
{{- if .Site.Menus.main }}
|
||||
<ul class="menu">
|
||||
<ul class="menu" id="menu" onscroll="menu_on_scroll()">
|
||||
{{- range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue