From 70ef9fb89209f929a61969be3a69fbc7118ee066 Mon Sep 17 00:00:00 2001 From: Zdenek K Date: Mon, 1 Apr 2024 22:06:11 +0200 Subject: [PATCH] #162 Scroll to top - attempted fix --- .gitignore | 3 ++- layouts/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index eeba886..0c3b764 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ public exampleSite/public exampleSite/resources node_modules -*.lock \ No newline at end of file +*.lock +hugo-scroll.code-workspace diff --git a/layouts/index.html b/layouts/index.html index 7ccafab..ad747dd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -54,7 +54,7 @@
{{ if eq .Params.nav_to_top_weight "first" }} {{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }} - {{ $fnav_title | safeHTML }} + {{ $fnav_title | safeHTML }} {{ end }} {{ $last_index_val := 0 }} {{ range $index_val, $elem_val := $content }} @@ -64,7 +64,7 @@ {{ end }} {{ if eq .Params.nav_to_top_weight "last" }} {{ $fnav_title := "Start" }}{{ with .Params.nav_to_top_title }}{{ $fnav_title = . }}{{ end }} - {{ $fnav_title | safeHTML }} + {{ $fnav_title | safeHTML }} {{ end }}