fix: Book layout

Add anchor links from Docs layout
This commit is contained in:
George Cushen committed 2020-07-25 20:39:30 +01:00
1 parent 9a5a33e354
commit 64f921f141
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@
{{ end }}
{{/* Load hash anchors for documentation pages. */}}
{{ if eq .Type "docs" }}
{{ if in (slice "book" "docs") .Type }}
{{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.anchor.url $js.anchor.version) $js.anchor.sri | safeHTML }}
<script>
anchors.add();