summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authoramzrk22020-04-16 15:45:21 +0800
committeramzrk22020-04-16 15:45:21 +0800
commite51e0f7b8954c61f312fbf2e3b0694d412c6f9bb (patch)
treeb717472616432b62a9ce6ae5e984e9cef8fd7578 /layouts/partials/head.html
parente76c48a98316de4609d8add5973a0d90dfcae655 (diff)
downloadhugo-theme-fuji-e51e0f7b8954c61f312fbf2e3b0694d412c6f9bb.tar.gz
hugo-theme-fuji-e51e0f7b8954c61f312fbf2e3b0694d412c6f9bb.tar.bz2
hugo-theme-fuji-e51e0f7b8954c61f312fbf2e3b0694d412c6f9bb.zip
Optional intersection observer js
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index df0f46a..c5331cc 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,6 +27,8 @@
{{ $options := (dict "targetPath" "css/main.min.css" "outputStyle" "compressed") }}
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
+{{ with .Site.Params.cdnIntersectionObserverJS }}
+<script src="{{ . }}"></script>{{ end }}
<script src="{{ .Site.Params.cdnVanillaLazyloadJS }}"></script>
<script src="{{ .Site.Params.cdnJQueryJS }}"></script>
<script src="{{ .Site.Params.cdnProgessJS }}"></script>