feat: Ajout de Plausible

This commit is contained in:
Simon 2022-02-23 11:45:22 +01:00
parent 042029ddd7
commit 70b3ad4df0
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

@ -35,3 +35,7 @@
<footer class="explain">
Ce site est réalisé par <a href="https://weko.io">Weko</a> de façon éco-responsable.
</footer>
{{ 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 }}cremeaux.fr" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{{ end }}