From dcd34b4a03df7c36bd90336ab2a92ae8c3de06ba Mon Sep 17 00:00:00 2001 From: Florent Gallaire Date: Thu, 2 Nov 2017 16:19:57 +0100 Subject: [PATCH] Add DISPLAY_TAGS_ON_MENU option (Fix #2244) --- docs/changelog.rst | 2 ++ docs/settings.rst | 5 +++++ pelican/settings.py | 1 + 3 files changed, 8 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index aa594a2c..93b67306 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,8 @@ Next release ============ * New signal: ``feed_generated`` +* Provide ability to show or hide tags from menu using + ``DISPLAY_TAGS_ON_MENU`` option 3.7.1 (2017-01-10) ================== diff --git a/docs/settings.rst b/docs/settings.rst index e5ce19f5..5d7f36c4 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -60,6 +60,11 @@ Basic settings Whether to display categories on the menu of the template. Templates may or not honor this setting. +.. data:: DISPLAY_TAGS_ON_MENU = False + + Whether to display tags on the menu of the template. Templates may or not + honor this setting. + .. data:: DOCUTILS_SETTINGS = {} Extra configuration settings for the docutils publisher (applicable only to diff --git a/pelican/settings.py b/pelican/settings.py index 417de79a..1b7acc53 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -54,6 +54,7 @@ DEFAULT_CONFIG = { 'SITENAME': 'A Pelican Blog', 'DISPLAY_PAGES_ON_MENU': True, 'DISPLAY_CATEGORIES_ON_MENU': True, + 'DISPLAY_TAGS_ON_MENU': False, 'DOCUTILS_SETTINGS': {}, 'OUTPUT_SOURCES': False, 'OUTPUT_SOURCES_EXTENSION': '.text',