From 55f88dd7bd8b6042f7e1fe47d7723fddb8431667 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 22 Feb 2022 17:27:03 +0100 Subject: [PATCH 01/19] feat(Plausible): Add analytic script --- layouts/partials/footer.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0293544..518db15 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,3 +15,6 @@
  • Politique de protection des données
  • +{{ if eq hugo.Environment "production" }} + +{{ end }} -- 2.40.1 From 66e767424c85d25e9807ecbf6a318f8a1c91adeb Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 22 Feb 2022 17:43:14 +0100 Subject: [PATCH 02/19] feat(Nginx): Add analytic on Content-Security-Policy --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3f66d28..322c3a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 -- 2.40.1 From b55c159daaa8127bc5e072a632c36a974f9dd924 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 22 Feb 2022 19:09:42 +0100 Subject: [PATCH 03/19] feat(Plausible): Add script --- layouts/partials/footer.html | 5 +++-- layouts/partials/header.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 518db15..3b8b692 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,6 +15,7 @@
  • Politique de protection des données
  • -{{ if eq hugo.Environment "production" }} - +{{ if or (eq hugo.Environment "production") (eq hugo.Environment "staging") }} + + {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ce65e06..00ccd2b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,7 +8,7 @@ {{ printf "" $tag | safeHTML }}