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

20 lines
673 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 }}
2025-06-20 02:33:45 +02:00
{{- if not hugo.IsDevelopment }}
<script defer data-domain="bcarlin.net" src="//stats.bcarlin.net/js/script.js"></script>
2025-06-20 02:33:45 +02:00
{{- end }}