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

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/anchor.html')
-rw-r--r--layouts/partials/anchor.html4
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',