chiark / gitweb /
documentation/python: this should be checking for subtitle, actually.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 12 Sep 2019 20:57:40 +0000 (22:57 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 12 Sep 2019 20:57:40 +0000 (22:57 +0200)
Otherwise it prints None there and that's everything but desired.

documentation/templates/python/base.html

index 11985d5aa4c25a1f9c9262e9bfbc2c01ed22bec0..892ec42caa4f58208c7fbf5fc3bad35b5a73527e 100644 (file)
@@ -26,7 +26,7 @@
 <header><nav id="navigation">
   <div class="m-container">
     <div class="m-row">
-      {% if MAIN_PROJECT_URL and PROJECT_TITLE %}
+      {% if MAIN_PROJECT_URL and PROJECT_SUBTITLE %}
       <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
         <a href="{{ MAIN_PROJECT_URL }}">{% if PROJECT_LOGO %}<img src="{{ PROJECT_LOGO|format_url|e }}" />{% endif %}{{ PROJECT_TITLE }}</a> <span class="m-breadcrumb">|</span> <a href="{{ 'index'|path_to_url }}" class="m-thin">{{ PROJECT_SUBTITLE }}</a>
       </span>