Move legacy script to assets folder

JavaScript should be in "assets/js"; move the miscellaneous legacy
script code there.
pull/51835/head
Tim Bannister 2025-08-07 22:46:24 +01:00
parent 913cad9905
commit 0ede719918
No known key found for this signature in database
GPG Key ID: 9BF3452DD26C1742
3 changed files with 3 additions and 2 deletions

View File

@ -112,3 +112,6 @@
<!--for the splitter-->
<!--script src="https://unpkg.com/split.js/dist/split.min.js"></script-->
<script src="/js/split-1.6.0.js" integrity="sha384-0blL3GqHy6+9fw0cyY2Aoiwg4onHAtslAs4OkqZY7UQBrR65/K4gI+hxLdWDrjpz"></script>
{{- $legacyScriptJs := resources.Get "js/legacy-script.js" -}}
<script src="{{ $legacyScriptJs.RelPermalink }}"></script>

View File

@ -1,5 +1,3 @@
<script src="{{ "js/script.js" | relURL }}"></script>
{{/* Handle legacy Kubernetes shortcode for Mermaid diagrams */}}
{{- if (.HasShortcode "mermaid") -}}
{{ .Page.Store.Set "hasmermaid" true -}}