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'