2023-10-09 15:42:51 +00:00
|
|
|
{{- $page := .page }}
|
|
|
|
{{- with $page }}
|
|
|
|
<script src="{{"js/d3/d3-color.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-dispatch.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-drag.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-ease.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-interpolate.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-selection.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-timer.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-transition.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/d3/d3-zoom.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
<script src="{{"js/js-yaml.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
{{- if isset .Params "custommermaidurl" }}
|
|
|
|
<script src="{{ .Params.customMermaidURL }}" defer></script>
|
|
|
|
{{- else if isset .Site.Params "custommermaidurl" }}
|
|
|
|
<script src="{{ .Site.Params.customMermaidURL }}" defer></script>
|
|
|
|
{{- else }}
|
|
|
|
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" defer></script>
|
|
|
|
{{- end }}
|
2023-10-26 09:27:53 +00:00
|
|
|
{{- $init := "{}" }}
|
2023-10-09 15:42:51 +00:00
|
|
|
{{- if isset .Params "mermaidinitialize" }}
|
2023-10-26 09:27:53 +00:00
|
|
|
{{- $init = .Params.mermaidInitialize }}
|
2023-10-09 15:42:51 +00:00
|
|
|
{{- else if isset .Site.Params "mermaidinitialize" }}
|
2023-10-26 09:27:53 +00:00
|
|
|
{{- $init = .Site.Params.mermaidInitialize }}
|
2023-10-09 15:42:51 +00:00
|
|
|
{{- end }}
|
|
|
|
<script>
|
2023-10-26 09:27:53 +00:00
|
|
|
window.themeUseMermaid = JSON.parse({{ $init }});
|
2023-10-09 15:42:51 +00:00
|
|
|
</script>
|
|
|
|
{{- end }}
|