aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-02-23 05:44:00 +0100
committerMax Magorsch <max@magorsch.de>2020-02-23 05:45:47 +0100
commit30f7100c89840f3d088143897fdc685769c1e3c1 (patch)
tree76deb07325222d20706a883197dc9221a875d242
parentBump the version (diff)
downloadtyrian-sphinx-theme-30f7100c89840f3d088143897fdc685769c1e3c1.tar.gz
tyrian-sphinx-theme-30f7100c89840f3d088143897fdc685769c1e3c1.tar.bz2
tyrian-sphinx-theme-30f7100c89840f3d088143897fdc685769c1e3c1.zip
Fix the title in the navbar
Use shorttitle instead of doctitle, as shorttitle is also correctly displayed in case of the SingleHtmlBuilder. Signed-off-by: Max Magorsch <max@magorsch.de>
-rw-r--r--tyrian_sphinx_theme/_version.py2
-rw-r--r--tyrian_sphinx_theme/layout.html3
2 files changed, 3 insertions, 2 deletions
diff --git a/tyrian_sphinx_theme/_version.py b/tyrian_sphinx_theme/_version.py
index ad0234e..ce1f4ca 100644
--- a/tyrian_sphinx_theme/_version.py
+++ b/tyrian_sphinx_theme/_version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 0, 5)
+__version_info__ = (0, 0, 6)
__version__ = ".".join(map(str, __version_info__))
diff --git a/tyrian_sphinx_theme/layout.html b/tyrian_sphinx_theme/layout.html
index 2d9da1b..eb9b11b 100644
--- a/tyrian_sphinx_theme/layout.html
+++ b/tyrian_sphinx_theme/layout.html
@@ -168,6 +168,7 @@
{%- block header %}
+{{ test_var }}
<header>
<div class="site-title">
<div class="container">
@@ -197,7 +198,7 @@
</div>
<div class="logo">
<a href="index.html" title="Back to the homepage" class="site-logo"></a>
- <span class="site-label">{{ docstitle|replace("Gentoo","")|replace("documentation","") }}</span>
+ <span class="site-label">{{ shorttitle|replace("Gentoo","")|replace("documentation","") }}</span>
</div>
</div>
</div>