summaryrefslogtreecommitdiff
path: root/layouts/partials/head/js.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/js.html')
-rw-r--r--layouts/partials/head/js.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html
new file mode 100644
index 0000000..a1d84ae
--- /dev/null
+++ b/layouts/partials/head/js.html
@@ -0,0 +1,8 @@
1{{- with resources.Get "js/main.js" }}
2 {{- $opts := dict "minify" true }}
3 {{- with . | js.Build $opts | fingerprint }}
4 <script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}"
5 crossorigin="anonymous">
6 </script>
7 {{- end }}
8{{- end }} \ No newline at end of file