From 2f80133a695b9e843dcf1523ba0aa19496daae05 Mon Sep 17 00:00:00 2001 From: ivanhercaz Date: Tue, 18 Jun 2019 22:42:02 +0100 Subject: [PATCH] Update instructions to JINJA_ENVIRONMENT JINJA_ENVIRONMENT replace JINJA_EXTENSIONS. It was changed in the example codes but not in the how to localize templates with Jinja2. --- localizing_using_jinja2.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/localizing_using_jinja2.rst b/localizing_using_jinja2.rst index 6ffe654..a28bedd 100644 --- a/localizing_using_jinja2.rst +++ b/localizing_using_jinja2.rst @@ -6,11 +6,13 @@ Localizing themes with Jinja2 --------------------- To enable the |ext| extension in your templates, you must add it to -``JINJA_EXTENSIONS`` in your Pelican configuration +``JINJA_ENVIRONMENT`` in your Pelican configuration .. code-block:: python - JINJA_EXTENSIONS = ['jinja2.ext.i18n', ...] + JINJA_ENVIRONMENT = { + 'extensions': ['jinja2.ext.i18n', ...] + } Then follow the `Jinja2 templating documentation for the I18N plugin `_ to make your templates