bcarlin.net/themes/bcarlin/layouts/_partials/head/js.html

18 lines
629 B
HTML
Raw Normal View History

2025-06-07 02:33:02 +02:00
{{- with resources.Get "static/js/bcarlin.js" }}
{{- $opts := dict
"minify" (not hugo.IsDevelopment)
"sourceMap" (cond hugo.IsDevelopment "external" "")
"targetPath" "static/js/bcarlin.js"
}}
{{- with . | js.Build $opts }}
{{- if hugo.IsDevelopment }}
<script src="{{ .RelPermalink }}"></script>
{{- else }}
{{- with . | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}
{{- end }}
<script defer data-domain="bcarlin.net" src="//stats.bcarlin.net/js/script.js"></script>