Add back to top button

This commit is contained in:
2021-11-22 20:49:11 -06:00
parent 0e1559f2a2
commit 161c68d16c
4 changed files with 41 additions and 3 deletions

View File

@ -4,6 +4,8 @@
{{ partial "head.html" . }}
<body>
<a id="top"></a>
<div class="top">
{{ partial "top.html" . }}
</div>
@ -13,9 +15,9 @@
{{ end }}
<div class="content">
{{ block "main" . }}
{{ .Content }}
{{ end }}
{{ block "main" . }}
{{ .Content }}
{{ end }}
</div>
{{ with .Site.Copyright }}
@ -26,6 +28,10 @@
</small>
</footer>
{{ end }}
<a id="back-to-top" href="#top">
{{ partial "icon.html" "chevron-up" }}
</a>
</body>
</html>