feat: Ajout de Plausible
This commit is contained in:
parent
9ad8a1b3d2
commit
e31784300a
|
@ -1,4 +1,4 @@
|
||||||
FROM registry.weko.io/nginx-lowtech:0.0.9
|
FROM registry.weko.io/nginx-lowtech:0.1.0
|
||||||
|
|
||||||
# Copie des sources du site
|
# Copie des sources du site
|
||||||
COPY public /usr/share/nginx/html
|
COPY public /usr/share/nginx/html
|
||||||
|
|
|
@ -4,3 +4,7 @@
|
||||||
{{ $js := . | resources.Minify }}
|
{{ $js := . | resources.Minify }}
|
||||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ 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 }}
|
||||||
|
|
Loading…
Reference in New Issue