mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 20:16:47 +08:00
Add initial theme assets, layouts, and configuration for Hugo site
This commit is contained in:
7
themes/typo/layouts/partials/head/js.html
Normal file
7
themes/typo/layouts/partials/head/js.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- with resources.Get "js/main.js" }}
|
||||
{{- $opts := dict "minify" true }}
|
||||
{{- with . | js.Build $opts | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}"
|
||||
crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user