mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-04 21:23:07 +00:00
5a534d02b2
caused the stylesheet generator to ignore clicks
29 lines
No EOL
2.1 KiB
HTML
29 lines
No EOL
2.1 KiB
HTML
{{- $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 }}
|
|
{{- $init := "{}" }}
|
|
{{- if isset .Params "mermaidinitialize" }}
|
|
{{- $init = .Params.mermaidInitialize }}
|
|
{{- else if isset .Site.Params "mermaidinitialize" }}
|
|
{{- $init = .Site.Params.mermaidInitialize }}
|
|
{{- end }}
|
|
<script>
|
|
window.themeUseMermaid = JSON.parse({{ $init }});
|
|
</script>
|
|
{{- end }} |