17 lines
761 B
HTML
17 lines
761 B
HTML
{{- 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 }}
|
|
<!-- <script src="{{ .Page.Site.BaseURL }}/js/main.js" defer></script> -->
|
|
<script src="{{ (resources.Get "js/jquery.min.js").RelPermalink }}"></script>
|
|
<script src="{{ (resources.Get "js/jquery.nanogallery2.min.js").RelPermalink }}" defer></script>
|
|
<script src="{{ (resources.Get "/js/gallery.js").RelPermalink }}" defer></script>
|