Skip to content

Commit 0ede719

Browse files
committed
Move legacy script to assets folder
JavaScript should be in "assets/js"; move the miscellaneous legacy script code there.
1 parent 913cad9 commit 0ede719

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

layouts/partials/hooks/head-end.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@
112112
<!--for the splitter-->
113113
<!--script src="https://unpkg.com/split.js/dist/split.min.js"></script-->
114114
<script src="/js/split-1.6.0.js" integrity="sha384-0blL3GqHy6+9fw0cyY2Aoiwg4onHAtslAs4OkqZY7UQBrR65/K4gI+hxLdWDrjpz"></script>
115+
116+
{{- $legacyScriptJs := resources.Get "js/legacy-script.js" -}}
117+
<script src="{{ $legacyScriptJs.RelPermalink }}"></script>

layouts/partials/scripts.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<script src="{{ "js/script.js" | relURL }}"></script>
2-
31
{{/* Handle legacy Kubernetes shortcode for Mermaid diagrams */}}
42
{{- if (.HasShortcode "mermaid") -}}
53
{{ .Page.Store.Set "hasmermaid" true -}}

0 commit comments

Comments
 (0)