Implement Hugo Pipes to process sass and js. Gulp now only for lint.
This commit is contained in:
parent
b763e4f514
commit
336b3156ca
1 changed files with 1343 additions and 1668 deletions
|
|
@ -1,2 +1,10 @@
|
|||
{{ if $.Param "jquery" }}<script src="{{ "/js/jquery.slim.min.js" | relURL }}"></script>{{ end }}
|
||||
{{ if and ($.Param "jquery") ($.Param "contactform") }}<script src="/js/contact.js"></script>{{ end }}
|
||||
{{ if $.Param "jquery" -}}
|
||||
{{ $jquery := resources.Get "js/jquery.slim.min.js" | fingerprint -}}
|
||||
<script src="{{ $jquery.RelPermalink }}"></script>
|
||||
{{ $script := resources.Get "js/script.js" | minify | fingerprint -}}
|
||||
<script src="{{ $script.RelPermalink }}"></script>
|
||||
{{ if $.Param "contactform" -}}
|
||||
{{ $contact := resources.Get "js/contact.js" | minify | fingerprint -}}
|
||||
<script src="{{ $contact.RelPermalink }}"></script>
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue