Add a go to top link at the bottom of every page

This commit is contained in:
2023-01-21 09:58:40 +01:00
parent ee88e0f6cb
commit 4214e26ad7
3 changed files with 11 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ .Content }}
{{ partial "totop" }}
{{ end }}

View File

@@ -0,0 +1,3 @@
<div class="to-top">
[<a href="#top">Nach oben</a>]
</div>