chiark / gitweb /
theme: rename :navbar_brand_hidden: option to :hide_navbar_brand:.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 10 Dec 2017 14:37:50 +0000 (15:37 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 01:48:25 +0000 (02:48 +0100)
Sorry about the breakage (again). For consistency with naming of all
other "do something" options (:collapse_first:, :hide_summary: etc.).

doc/admire/math.rst
doc/index.rst
doc/pelican/theme.rst
pelican-theme/templates/base.html

index dce7980572994525ed6f858ee841bd707c35e439..4e813db64873462a89f86157f7c518c6d4cd658b 100644 (file)
@@ -33,7 +33,6 @@ 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::
 
index b90e3ff4641b79df33b217fa1008429af42e1c63..52d19ffec8b794a1345d19b649efbd2dd5cbd6b6 100644 (file)
@@ -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
+:hide_navbar_brand: True
 :landing:
     .. container:: m-row
 
index 688cd01e464e5ac76ecf99062a6816a2bb735586..a8e5102e1fc22aabe37d09d6751fc5a386c21632 100644 (file)
@@ -292,8 +292,8 @@ cover image spanning the whole window width. Put cover image URL into a
 :abbr:`reST <reStructuredText>`-processed content that appears on top of the
 cover image. Contents of the :rst:`:landing:` are put into a
 :html:`<div class="m-container">`, you are expected to fully take care of rows
-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
+and columns in it. The :rst:`:hide_navbar_brand:` 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
@@ -318,7 +318,7 @@ destination and URL.
     :save_as: index.html
     :url:
     :cover: {filename}/static/cover.jpg
-    :navbar_brand_hidden: True
+    :hide_navbar_brand: True
     :landing:
         .. container:: m-row
 
index b90d07b33ddaa5186edd13b513ea7c6dedbbdb7e..f5335ae34ef5ddc85b3079bac4142778d09164ae 100644 (file)
@@ -23,7 +23,7 @@
 <header><nav id="navigation"{% if page and page.landing and page.cover %} class="m-navbar-landing"{% endif %}{% if article and article.cover %} class="m-navbar-jumbo"{% endif %}>
   <div class="m-container">
     <div class="m-row">
-      <a href="{{ SITEURL }}/" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m{% if page and page.landing and page.cover and page.navbar_brand_hidden == 'True' %} m-navbar-brand-hidden{% endif %}">
+      <a href="{{ SITEURL }}/" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m{% if page and page.landing and page.cover and page.hide_navbar_brand == 'True' %} m-navbar-brand-hidden{% endif %}">
         {%- if M_SITE_LOGO %}<img src="{{ M_SITE_LOGO }}" />{% endif -%}
         {{- M_SITE_LOGO_TEXT or SITENAME -}}
       </a>