From 0c500ce286822037365d8321e6b59efc3eef3267 Mon Sep 17 00:00:00 2001 From: David Soulayrol Date: Sun, 3 Jul 2022 22:20:00 +0200 Subject: [PATCH] Ajout du code pour Matomo en mode production. --- layouts/base.njk | 16 ++++++++++++++++ scripts/metalsmith.js | 1 + 2 files changed, 17 insertions(+) diff --git a/layouts/base.njk b/layouts/base.njk index 3533b87..070d467 100644 --- a/layouts/base.njk +++ b/layouts/base.njk @@ -12,6 +12,22 @@ {% block head %}{% endblock %} + {% if production %} + + + + {% endif %}
diff --git a/scripts/metalsmith.js b/scripts/metalsmith.js index bb16c9c..62fdcbd 100644 --- a/scripts/metalsmith.js +++ b/scripts/metalsmith.js @@ -23,6 +23,7 @@ module.exports = new Metalsmith(config.paths.projectRoot) .clean(__PROD__) .metadata({ moment: moment, + production: __PROD__, remove_diatrics: function (e) { return slug(e, { mode: 'rfc3986' }) }, site: { title: 'Ti Nuage'