From 64f921f141e13830f896241e4cc96de0948af1cd Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 25 Jul 2020 20:39:30 +0100 Subject: [PATCH] fix: Book layout Add anchor links from Docs layout --- layouts/partials/site_js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/site_js.html b/layouts/partials/site_js.html index 1ec5811e..3c6388cf 100644 --- a/layouts/partials/site_js.html +++ b/layouts/partials/site_js.html @@ -69,7 +69,7 @@ {{ end }} {{/* Load hash anchors for documentation pages. */}} - {{ if eq .Type "docs" }} + {{ if in (slice "book" "docs") .Type }} {{ printf "" (printf $js.anchor.url $js.anchor.version) $js.anchor.sri | safeHTML }}