From 1f072115897dfe09d33d86433c9e570e02586e7e Mon Sep 17 00:00:00 2001 From: Olivier Maury <olivier.maury@inrae.fr> Date: Thu, 9 Nov 2023 14:09:04 +0100 Subject: [PATCH 1/2] Ajouter le suivi Matomo. refs agroclim/agrometinfo/www#17 --- .../layouts/partials/custom-header.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/themes/hugo-theme-relearn/layouts/partials/custom-header.html b/themes/hugo-theme-relearn/layouts/partials/custom-header.html index 2802632..244bb5b 100644 --- a/themes/hugo-theme-relearn/layouts/partials/custom-header.html +++ b/themes/hugo-theme-relearn/layouts/partials/custom-header.html @@ -2,4 +2,18 @@ <style> /* Custom css */ </style> ---> \ No newline at end of file +--> +<!-- Matomo --> + <script> + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//agroclim.inrae.fr/matomo/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '{{ .Site.Params.matomoSiteId }}']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); + </script> -- GitLab From cfc217563d6e2a115523e08a9348673d99342927 Mon Sep 17 00:00:00 2001 From: Olivier Maury <olivier.maury@inrae.fr> Date: Thu, 9 Nov 2023 14:15:58 +0100 Subject: [PATCH 2/2] figer la version de l'image Hugo --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 894926b..49233ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: registry.gitlab.com/pages/hugo/hugo_extended:latest +image: registry.gitlab.com/pages/hugo/hugo_extended:0.111.3 variables: HUGO_ENV: ci -- GitLab