aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2020-02-23 17:35:32 +0100
committerMax Magorsch <max@magorsch.de>2020-02-23 17:35:32 +0100
commit7a8db59fe568cf3405af1c11bc5b8df12e8384ab (patch)
tree879f4028a896db70a379cb8f5c0229359acb95e2
parentFix the title in the navbar (diff)
downloadtyrian-sphinx-theme-7a8db59fe568cf3405af1c11bc5b8df12e8384ab.tar.gz
tyrian-sphinx-theme-7a8db59fe568cf3405af1c11bc5b8df12e8384ab.tar.bz2
tyrian-sphinx-theme-7a8db59fe568cf3405af1c11bc5b8df12e8384ab.zip
Link all generated indices in the navbar
Signed-off-by: Max Magorsch <max@magorsch.de>
-rw-r--r--tyrian_sphinx_theme/_version.py2
-rw-r--r--tyrian_sphinx_theme/layout.html22
2 files changed, 16 insertions, 8 deletions
diff --git a/tyrian_sphinx_theme/_version.py b/tyrian_sphinx_theme/_version.py
index ce1f4ca..dc9f0fe 100644
--- a/tyrian_sphinx_theme/_version.py
+++ b/tyrian_sphinx_theme/_version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 0, 6)
+__version_info__ = (0, 0, 7)
__version__ = ".".join(map(str, __version_info__))
diff --git a/tyrian_sphinx_theme/layout.html b/tyrian_sphinx_theme/layout.html
index eb9b11b..3e8accc 100644
--- a/tyrian_sphinx_theme/layout.html
+++ b/tyrian_sphinx_theme/layout.html
@@ -168,7 +168,6 @@
{%- block header %}
-{{ test_var }}
<header>
<div class="site-title">
<div class="container">
@@ -239,12 +238,21 @@
{%- endif %}
<a href="search.html">Search</a></li>
- {%- if pagename == "genindex" %}
- <li class="active">
- {%- else %}
- <li>
- {%- endif %}
- <a href="genindex.html">Index</a></li>
+
+ {% for rellink in rellinks %}
+
+ {%- if 'index' in rellink[0].lower() or 'index' in rellink[1].lower() or 'index' in rellink[3].lower() %}
+
+ {%- if pagename == rellink[0] %}<li class="active">{%- else %}<li>{%- endif %}
+
+ <a href="{{ rellink[0] }}.html">{{ rellink[1] }}</a>
+
+ </li>
+
+ {%- endif %}
+
+ {% endfor %}
+
{%- endif %}
{% if theme_navigationlinks_navbar != "none" %}