cleanup
This commit is contained in:
parent
f25c5cb60c
commit
3475c31d71
38 changed files with 158 additions and 359 deletions
2
themes/zorbed/layouts/partials/head/css.html
Normal file
2
themes/zorbed/layouts/partials/head/css.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<link rel="stylesheet" href="/style.css">
|
||||
|
12
themes/zorbed/layouts/partials/head/js.html
Normal file
12
themes/zorbed/layouts/partials/head/js.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{- with resources.Get "js/main.js" }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
{{- with . | js.Build }}
|
||||
<script src="{{ .RelPermalink }}"></script>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- $opts := dict "minify" true }}
|
||||
{{- with . | js.Build $opts | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue