{{ if .IsHome }}
  {{ $jsLogoSparks := resources.Get "js/logo-sparks.js" }}
  {{ if $jsLogoSparks }}
    {{ $jsLogoSparks = $jsLogoSparks | resources.Minify | resources.Fingerprint ($.Site.Params.fingerprintAlgorithm | default "sha256") }}
    <script
      defer
      type="text/javascript"
      src="{{ $jsLogoSparks.RelPermalink }}"
      integrity="{{ $jsLogoSparks.Data.Integrity }}"
    ></script>
  {{ end }}
{{ end }}

