From a2b055de52cb90180ad57c26119fe72e61d70494 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Fri, 18 Oct 2019 00:19:24 -0400 Subject: Updated to Docsy HEAD This updates the vendored docsy to https://github.com/google/docsy/tree/1a09abe6d7eaf02e44f79de3eadf8178a3792e81 --- themes/docsy/layouts/partials/scripts.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'themes/docsy/layouts/partials/scripts.html') diff --git a/themes/docsy/layouts/partials/scripts.html b/themes/docsy/layouts/partials/scripts.html index 7267b3393..cc8dc071e 100644 --- a/themes/docsy/layouts/partials/scripts.html +++ b/themes/docsy/layouts/partials/scripts.html @@ -2,12 +2,13 @@ {{ $jsBase := resources.Get "js/base.js" }} +{{ $jsAnchor := resources.Get "js/anchor.js" }} {{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} -{{ $js := (slice $jsBase $jsSearch) | resources.Concat "js/main.js" }} +{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js" }} {{ if .Site.IsServer }} {{ else }} {{ $js := $js | minify | fingerprint }} - + {{ end }} {{ partial "hooks/body-end.html" . }} -- cgit v1.2.3