Change-Id: I41ce21a927dfac5bfc9697cfce3058f3af87bb00 Reviewed-on: https://cl.snix.dev/c/snix/+/30231 Autosubmit: Paul Meyer <katexochen0@gmail.com> Reviewed-by: Florian Klink <flokli@flokli.de> Tested-by: besadii
13 lines
477 B
HTML
13 lines
477 B
HTML
{{/* 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 -}}
|
|
*/}}
|