From 66e767424c85d25e9807ecbf6a318f8a1c91adeb Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 22 Feb 2022 17:43:14 +0100 Subject: [PATCH 01/18] 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 02/18] 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 }}