Improve scripts for menu-scroll
- also fixes menu-scroll-position not working in search page
This commit is contained in:
parent
2f409920e1
commit
43e1648b3e
2 changed files with 5 additions and 9 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue