mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: Book layout
Add anchor links from Docs layout
This commit is contained in:
parent
9a5a33e354
commit
64f921f141
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue