mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-21 12:20:39 +00:00
use .Page.Site instead of site to access data assets (#541)
This commit is contained in:
parent
74e4d13673
commit
54b7d1388f
@ -1,7 +1,7 @@
|
||||
<!-- prettier-ignore-start -->
|
||||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||
<!-- Include mermaid only first time -->
|
||||
<script defer src="{{ index (index site.Data.assets "mermaid.js") "src" | relURL }}"></script>
|
||||
<script defer src="{{ index (index .Page.Site.Data.assets "mermaid.js") "src" | relURL }}"></script>
|
||||
{{ .Page.Scratch.Set "mermaid" true }}
|
||||
{{ end }}
|
||||
<!-- prettier-ignore-end -->
|
||||
|
Loading…
Reference in New Issue
Block a user