feat: restructure dependencies+
This commit is contained in:
13
layouts/partials/footer/script-footer-custom.html
Normal file
13
layouts/partials/footer/script-footer-custom.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{/* Put your custom <script></script> tags here */}}
|
||||
|
||||
{{/* EXAMPLE - only load script for production
|
||||
{{ if eq (hugo.Environment) "production" -}}
|
||||
{{ partial "footer/esbuild" (dict "src" "js/instantpage.js" "load" "async" "transpile" false) -}}
|
||||
{{ end -}}
|
||||
*/}}
|
||||
|
||||
{{/* EXAMPLE - only load script for a page type e.g. contact or gallery
|
||||
{{ if eq .Type "gallery" -}}
|
||||
{{ partial "footer/esbuild" (dict "src" "js/gallery.js" "load" "async" "transpile" false) -}}
|
||||
{{ end -}}
|
||||
*/}}
|
Reference in New Issue
Block a user