Commit d767491a authored by Kaushal Modi's avatar Kaushal Modi

Add "Back to top" link to Content

parent b461f13b
......@@ -9,6 +9,7 @@
<div class="toc">
<h3>Contents</h3>
{{ . }}
<a href="#top" class="back-to-top">Back to top</a>
</div>
{{ end }}
{{ partial "toc_on_side" . }}
......
......@@ -1109,6 +1109,11 @@ pre::-webkit-scrollbar-thumb {
.toc ul:not(.catlist):not(.navbar):not(.post-list) li:before {
content: '';
}
.toc .back-to-top { /* Back to top link */
font-size: 0.7rem;
margin-left: 1rem;
}
@media screen and (min-width: 1400px) {
.toc {
display: block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment