#162 Scroll to top - attempted fix
This commit is contained in:
parent
9e4ffcda5e
commit
628147b53f
2 changed files with 4 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -2,4 +2,5 @@ public
|
||||||
exampleSite/public
|
exampleSite/public
|
||||||
exampleSite/resources
|
exampleSite/resources
|
||||||
node_modules
|
node_modules
|
||||||
*.lock
|
*.lock
|
||||||
|
hugo-scroll.code-workspace
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
<div class='fixed-nav'>
|
<div class='fixed-nav'>
|
||||||
{{ if eq .Params.nav_to_top_weight "first" }}
|
{{ if eq .Params.nav_to_top_weight "first" }}
|
||||||
{{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }}
|
{{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }}
|
||||||
<a class='fn-item' item_index='{{ 0 }}' href='/#site-head'>{{ $fnav_title | safeHTML }}</a>
|
<a class='fn-item' item_index='{{ 0 }}' href='./#site-head'>{{ $fnav_title | safeHTML }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $last_index_val := 0 }}
|
{{ $last_index_val := 0 }}
|
||||||
{{ range $index_val, $elem_val := $content }}
|
{{ range $index_val, $elem_val := $content }}
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if eq .Params.nav_to_top_weight "last" }}
|
{{ if eq .Params.nav_to_top_weight "last" }}
|
||||||
{{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }}
|
{{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }}
|
||||||
<a class='fn-item' item_index='{{ (add $last_index_val 2) }}' href='/#site-head'>{{ $fnav_title | safeHTML }}</a>
|
<a class='fn-item' item_index='{{ (add $last_index_val 2) }}' href='./#site-head'>{{ $fnav_title | safeHTML }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue