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 }}
|
2025-06-15 01:48:15 +02:00
|
|
|
<script defer data-domain="bcarlin.net" src="//stats.bcarlin.net/js/script.js"></script>
|
2025-06-20 02:33:45 +02:00
|
|
|
{{- end }}
|