github.com/esnet/gdg@v0.6.1-0.20240412190737-6b6eba9c14d8/website/layouts/partials/footer/script-footer-custom.html (about)

     1  {{/* Put your custom <script></script> tags here */}}
     2  
     3  {{/* EXAMPLE - only load script for production
     4  {{ if eq (hugo.Environment) "production" -}}
     5    {{ partial "footer/esbuild" (dict "src" "js/instantpage.js" "load" "async" "transpile" false) -}}
     6  {{ end -}}
     7  */}}
     8  
     9  {{/* EXAMPLE - only load script for a page type e.g. contact or gallery
    10  {{ if eq .Type "gallery" -}}
    11    {{ partial "footer/esbuild" (dict "src" "js/gallery.js" "load" "async" "transpile" false) -}}
    12  {{ end -}}
    13  */}}