aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html28
1 files changed, 17 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html
index 004a4fa..a00a979 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -19,23 +19,29 @@
<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) }}
+ {% block mainnav %}
+ {% if page.ancestors or section.ancestors %}
+ <input id="menu-toggle" type="checkbox" {% if section.subsections or section.pages %}checked{% endif %} />
+ <label class='menu-button-container' for="menu-toggle">
+ <div class='menu-button'></div>
+ </label>
+ <div class="toc" id="navigation">
+ <div class="toc-sticky">
+ {% if page %}
+ {{ nav::navmenu(current=page) }}
+ {% else %}
+ {{ nav::navmenu(current=section) }}
+ {% endif %}
+ </div>
+ </div>
{% endif %}
- </div>
- </div>
- {% endblock toc %}
+ {% endblock mainnav %}
<div class="content text">
{% block content %}