From c6b943bfe9413e6a1b47007ba91f384eab56c498 Mon Sep 17 00:00:00 2001 From: Axel Haustant Date: Tue, 19 Mar 2013 13:05:03 +0100 Subject: [PATCH 1/4] Added missing JINJA_FILTERS documentation --- docs/settings.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/settings.rst b/docs/settings.rst index c1b3e305..6b663d76 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -67,6 +67,10 @@ Setting name (default value) What doe content directory) to the destination (inside the output directory). For example: ``(('extra/robots.txt', 'robots.txt'),)``. `JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use. +`JINJA_FILTERSS` (``{}``) A list of custom Jinja2 filters you want to use. + The dictionnary should map the filtername to the filter function. + For exemple: ``{'urlencode': urlencode_filter}`` + See `Jinja custom filters documentation`_. `LOCALE` (''[#]_) Change the locale. A list of locales can be provided here or a single string representing one locale. When providing a list, all the locales will be tried @@ -507,3 +511,6 @@ Example settings .. literalinclude:: ../samples/pelican.conf.py :language: python + + +.. _Jinja custom filters documentation: http://jinja.pocoo.org/docs/api/#custom-filters From c36fce8b6a85231824bcc68cba854884f7b22ef1 Mon Sep 17 00:00:00 2001 From: Axel Haustant Date: Tue, 19 Mar 2013 13:16:56 +0100 Subject: [PATCH 2/4] Added missing SITESUBTITLE documentation --- docs/settings.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/settings.rst b/docs/settings.rst index 6b663d76..72108009 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -478,6 +478,7 @@ free to use them in your themes as well. ======================= ======================================================= Setting name What does it do ? ======================= ======================================================= +`SITESUBTITLE` A subitle to appear in the header. `DISQUS_SITENAME` Pelican can handle Disqus comments. Specify the Disqus sitename identifier here. `GITHUB_URL` Your GitHub URL (if you have one). It will then From 7fb51e94bbc3e17e333f27cc66c1801e79f26448 Mon Sep 17 00:00:00 2001 From: Axel Haustant Date: Wed, 20 Mar 2013 16:08:54 +0100 Subject: [PATCH 3/4] Fix typos --- docs/settings.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index 72108009..6c12c4b2 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -67,7 +67,7 @@ Setting name (default value) What doe content directory) to the destination (inside the output directory). For example: ``(('extra/robots.txt', 'robots.txt'),)``. `JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use. -`JINJA_FILTERSS` (``{}``) A list of custom Jinja2 filters you want to use. +`JINJA_FILTERS` (``{}``) A list of custom Jinja2 filters you want to use. The dictionnary should map the filtername to the filter function. For exemple: ``{'urlencode': urlencode_filter}`` See `Jinja custom filters documentation`_. @@ -478,7 +478,7 @@ free to use them in your themes as well. ======================= ======================================================= Setting name What does it do ? ======================= ======================================================= -`SITESUBTITLE` A subitle to appear in the header. +`SITESUBTITLE` A subtitle to appear in the header. `DISQUS_SITENAME` Pelican can handle Disqus comments. Specify the Disqus sitename identifier here. `GITHUB_URL` Your GitHub URL (if you have one). It will then From e235cadda44dfef0c2135fc992ec6db1b7ebbb57 Mon Sep 17 00:00:00 2001 From: Axel Haustant Date: Wed, 20 Mar 2013 21:21:47 +0100 Subject: [PATCH 4/4] Fix typos --- docs/settings.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index 6c12c4b2..59893146 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -68,8 +68,8 @@ Setting name (default value) What doe For example: ``(('extra/robots.txt', 'robots.txt'),)``. `JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use. `JINJA_FILTERS` (``{}``) A list of custom Jinja2 filters you want to use. - The dictionnary should map the filtername to the filter function. - For exemple: ``{'urlencode': urlencode_filter}`` + The dictionary should map the filtername to the filter function. + For example: ``{'urlencode': urlencode_filter}`` See `Jinja custom filters documentation`_. `LOCALE` (''[#]_) Change the locale. A list of locales can be provided here or a single string representing one locale.