diff options
author | Alex <alex@adnab.me> | 2022-12-22 12:45:04 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2022-12-22 12:45:04 +0000 |
commit | 4831ac27871e44064dc55946c5ae10b8cda32b37 (patch) | |
tree | fd886ef1ded44fe457ab12241692d0ac89d52f0e /templates/index.html | |
parent | 73d4b846ec6976acd0abf53f28144823183fdfbd (diff) | |
parent | ec051a85db1ac5c3d05dda1954f9786cc67c0d52 (diff) | |
download | guide.deuxfleurs.fr-4831ac27871e44064dc55946c5ae10b8cda32b37.tar.gz guide.deuxfleurs.fr-4831ac27871e44064dc55946c5ae10b8cda32b37.zip |
Merge pull request 'Améliorations du CSS responsive et navigation sur mobile' (#17) from navigation-mobile into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/guide.deuxfleurs.fr/pulls/17
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 24 |
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 %} |