diff options
author | wlh233 <wlh233@live.com> | 2020-11-13 18:07:41 +0300 |
---|---|---|
committer | wlh233 <wlh233@live.com> | 2020-11-13 18:07:41 +0300 |
commit | ab9efea0dc0d0eb0202421aab978d8b54b5dac3b (patch) | |
tree | 4e133abd297ba1f7d74696a100af0466a51b1e83 /layouts/partials/backtotop.html |
first commit
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> |