diff options
Diffstat (limited to 'layouts/partials/backtotop.html')
-rw-r--r-- | layouts/partials/backtotop.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/backtotop.html b/layouts/partials/backtotop.html new file mode 100644 index 0000000..47c5657 --- /dev/null +++ b/layouts/partials/backtotop.html @@ -0,0 +1,12 @@ +<script src="/js/vanilla-back-to-top.min.js"></script> +<script> +addBackToTop({ + diameter: 42, +{{ if .Site.Params.primaryColor }} + backgroundColor: {{ .Param "primaryColor" }}, +{{end}} + + innerHTML: '<svg viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>', + textColor: '#fff' +}); +</script> |