hermit-V2/layouts/partials/scroll-to-top.html

6 lines
295 B
HTML
Raw Normal View History

2023-08-06 09:16:12 -04:00
{{ if and (.Site.Params.scrollToTop) (.Params.scrolltotop) }}
<a href="#" class="scroll-up">{{ partial "svg.html" (dict "context" . "name" "scrollup") }}</a>
<noscript>
<a href="#" class="scroll-up show">{{ partial "svg.html" (dict "context" . "name" "scrollup") }}</a>
</noscript>
{{ end }}