Skip to content

Commit a506b1c

Browse files
Add back-to-top link in layout template (#470)
Added a back-to-top link for improved navigation.
1 parent 0827427 commit a506b1c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

sass_source/sass/_page-layout.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,10 @@ html body {
367367
text-decoration: none;
368368
}
369369
}
370+
371+
.page__back-to-top-container {
372+
width: 100%;
373+
display: flex;
374+
justify-content: flex-end;
375+
margin-top: 1rem;
376+
}

source/_templates/layout.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
<div class="clearer"></div>
2828
</section>
2929

30+
<br>
31+
32+
<div class="page__back-to-top-container">
33+
<a href="#top" class="page__back-to-top">Back to top</a>
34+
</div>
35+
3036
{% if pagename not in ["index", "404", "search"] %}
3137
<section class="page__feedback">
3238
<h1>Was this article useful?</h1>

0 commit comments

Comments
 (0)