switch to managing CSS and JS as assets
All checks were successful
Website build and deploy / build (push) Successful in 1m11s
All checks were successful
Website build and deploy / build (push) Successful in 1m11s
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||
<script src="{{ .Site.BaseURL }}js/jquery-1.11.3.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/filter-tags.js"></script>
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<!--<script src="{{ .Site.BaseURL }}js/bootstrap-3.3.7.min.js" ></script>-->
|
||||
{{ range .Site.Params.custom_js -}}
|
||||
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
|
||||
{{ end }}
|
||||
{{- range (slice "js/jquery-1.11.3.min.js" "js/filter-tags.js") }}
|
||||
{{- with resources.Get . }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
{{- with . }}
|
||||
<script src="{{ .RelPermalink }}"></script>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- with . | minify | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- range .Site.Params.custom_js }}
|
||||
<script src="{{ relURL . }}"></script>
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user