summaryrefslogtreecommitdiff
path: root/layouts/partials/single/next-prev.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/single/next-prev.html')
-rw-r--r--layouts/partials/single/next-prev.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/layouts/partials/single/next-prev.html b/layouts/partials/single/next-prev.html
index 73d48cf..4d6e962 100644
--- a/layouts/partials/single/next-prev.html
+++ b/layouts/partials/single/next-prev.html
@@ -1,4 +1,4 @@
-{{- /* Navigation for Next and Previous Post */ -}}
+{{- /* Navigation for next & previous post and back to top */ -}}
{{- if ne .Params.excludeFromLists true }}
<nav class="post__navigation" aria-label="{{ lang.Translate "post.navigation" | default "Post navigation" }}">
<ul class="post__navigation-list">
@@ -29,4 +29,15 @@
{{- end }}
</ul>
</nav>
+
+<a
+ href="#"
+ class="post__scroll-top"
+ aria-label="{{ lang.Translate "posts.top" | default "Back to top" }}"
+ title="{{ lang.Translate "posts.top" | default "Back to top" }}"
+>
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
+ <path d="M17 15L12 10L7 15" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+ </svg>
+</a>
{{- end }}