From 539e3cabff427185c276d7e0e934fc9ecf6e81c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 6 Dec 2017 10:19:48 +0100 Subject: [PATCH] theme: expect Python-like boolean value for navbar_brand_hidden field. --- doc/admire/math.rst | 1 + doc/index.rst | 2 +- doc/pelican/theme.rst | 7 ++++--- pelican-theme/templates/base.html | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/admire/math.rst b/doc/admire/math.rst index 4e813db6..dce79805 100644 --- a/doc/admire/math.rst +++ b/doc/admire/math.rst @@ -33,6 +33,7 @@ m.css math :url: admire/math/ :cover: {filename}/static/cover-math.jpg :summary: The fastest possible math rendering for the modern web +:navbar_brand_hidden: False :footer: .. note-dim:: diff --git a/doc/index.rst b/doc/index.rst index c3751e1a..b90e3ff4 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -30,7 +30,7 @@ m.css :cover: {filename}/static/cover.jpg :summary: A no-nonsense, no-JavaScript CSS framework and Pelican theme for content-oriented websites -:navbar_brand_hidden: true +:navbar_brand_hidden: True :landing: .. container:: m-row diff --git a/doc/pelican/theme.rst b/doc/pelican/theme.rst index d05012a7..83216667 100644 --- a/doc/pelican/theme.rst +++ b/doc/pelican/theme.rst @@ -275,8 +275,9 @@ cover image spanning the whole window width. Put cover image URL into a :abbr:`reST `-processed content that appears on top of the cover image. Contents of the :rst:`:landing:` are put into a :html:`
`, you are expected to fully take care of rows -and columns in it. It's also possible to hide the navbar brand link --- simply -add a :rst:`:navbar_brand_hidden:` field with non-empty contents. +and columns in it. The :rst:`:navbar_brand_hidden:` field controls visibility +of the navbar brand link. Set it to :py:`True` to hide it, default (if not +present) is :py:`False`. .. block-warning:: Configuration @@ -300,7 +301,7 @@ destination and URL. :save_as: index.html :url: :cover: {filename}/static/cover.jpg - :navbar_brand_hidden: true + :navbar_brand_hidden: True :landing: .. container:: m-row diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index e6293b45..5373c3c0 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -23,7 +23,7 @@