Welcome to mirror list, hosted at ThFree Co, Russian Federation.

backtotop.html « partials « layouts - github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 47c56571d5f2f22de376908bc877bf1452ef56a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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>