diff options
Diffstat (limited to 'layouts/partials/backtotop.html')
-rw-r--r-- | layouts/partials/backtotop.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/backtotop.html b/layouts/partials/backtotop.html index f4616b8..23c9b16 100644 --- a/layouts/partials/backtotop.html +++ b/layouts/partials/backtotop.html @@ -1,4 +1,8 @@ +{{- if .Site.Params.noCDN -}} <script src={{ "js/vanilla-back-to-top.min.js" | absURL }}></script> +{{- else -}} +<script src="https://cdn.jsdelivr.net/npm/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js"></script> +{{- end -}} <script> addBackToTop({ diameter: 42, |