aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/index.html b/templates/index.html
index 004a4fa..fd4e9bf 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -19,23 +19,23 @@
<body>
{% block header %}
- <header class="box-shadow">
+ <header class="box-shadow top-nav">
{{ macros::render_header() }}
</header>
{% endblock header %}
<main>
- {% block toc %}
- <div class="toc">
- <div class="toc-sticky">
- {% if page %}
- {{ nav::navmenu(current=page) }}
- {% else %}
- {{ nav::navmenu(current=section) }}
- {% endif %}
- </div>
- </div>
- {% endblock toc %}
+ {% block mainnav %}
+ <div class="toc {% if page.ancestors or section.ancestors %}{% else %}toc-homepage{% endif %}">
+ <div class="toc-sticky">
+ {% if page %}
+ {{ nav::navmenu(current=page) }}
+ {% else %}
+ {{ nav::navmenu(current=section) }}
+ {% endif %}
+ </div>
+ </div>
+ {% endblock mainnav %}
<div class="content text">
{% block content %}