lestoitsduval/layouts/partials/js.html

11 lines
593 B
HTML
Raw Normal View History

2020-05-22 11:13:09 +02:00
{{ $targetPath := "js/main.js" }}
{{ $main := resources.Get $targetPath }}
{{ with $main }}
{{ $js := . | resources.Minify }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{ end }}
2022-02-23 11:32:59 +01:00
{{ if or (eq hugo.Environment "production") (eq hugo.Environment "staging") }}
<script defer data-domain="{{if eq hugo.Environment "staging" }}staging.{{ end }}lestoitsduval.fr" src="https://analytiques.resilien.cloud/js/plausible.js"></script>
2022-02-23 11:32:59 +01:00
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{ end }}