mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
fix: Book layout
Add anchor links from Docs layout
This commit is contained in:
1 parent
9a5a33e354
commit
64f921f141
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user