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-api="/api/event" data-domain="{{if eq hugo.Environment "staging" }}staging.{{ end }}lestoitsduval.fr" src="/js/script.js"></script>
|
|
|
|
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
|
|
|
{{ end }}
|