feat: Ajout de Plausible

This commit is contained in:
Simon 2022-02-23 11:32:59 +01:00
parent 9ad8a1b3d2
commit e31784300a
2 changed files with 5 additions and 1 deletions

View File

@ -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
COPY public /usr/share/nginx/html

View File

@ -4,3 +4,7 @@
{{ $js := . | resources.Minify }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{ 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 }}