Add a go to top link at the bottom of every page
This commit is contained in:
parent
ee88e0f6cb
commit
4214e26ad7
@ -161,6 +161,10 @@ h1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.to-top {
|
||||||
|
margin: 45px 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<a name="top">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
</a>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
{{ partial "totop" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
3
themes/tsc_vfl/layouts/partials/totop.html
Normal file
3
themes/tsc_vfl/layouts/partials/totop.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<div class="to-top">
|
||||||
|
[<a href="#top">Nach oben</a>]
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user