mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Improve scripts for menu-scroll
- also fixes menu-scroll-position not working in search page
This commit is contained in:
@ -139,7 +139,7 @@
|
||||
</span>
|
||||
</div>
|
||||
{{- $currentPage := . }}
|
||||
<ul id="menu" onscroll="menu_on_scroll()">
|
||||
<ul id="menu">
|
||||
{{- range .Site.Menus.main }}
|
||||
{{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
|
||||
{{- $page_url:= $currentPage.Permalink | absLangURL }}
|
||||
|
Reference in New Issue
Block a user