diff options
Diffstat (limited to 'layouts/partials/anchor.html')
-rw-r--r-- | layouts/partials/anchor.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/anchor.html b/layouts/partials/anchor.html index 8e2f36a..313277d 100644 --- a/layouts/partials/anchor.html +++ b/layouts/partials/anchor.html @@ -1,4 +1,8 @@ +{{- if .Site.Params.noCDN -}} <script src={{ "js/anchor.min.js" | absURL }}></script> +{{- else -}} +<script src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.0/anchor.min.js"></script> +{{- end -}} <script> anchors.options = { placement: 'left', |