aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/doc/global_toc.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-31 11:54:22 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-31 11:54:22 +0100
commit937245b202c200e1405209c59893d459b2194d2f (patch)
tree38dc667fb81be27b3b21e5cfccbf36d5fbc8fefd /templates/partials/doc/global_toc.html
parent4dde9b0855ad8edf5eef72036ee788aeeb5cd775 (diff)
parente5beba07d6b9e102cc28c7474b9db0ae11ec3c79 (diff)
downloadgaragehq.deuxfleurs.fr-937245b202c200e1405209c59893d459b2194d2f.tar.gz
garagehq.deuxfleurs.fr-937245b202c200e1405209c59893d459b2194d2f.zip
Merge branch 'master' of git.deuxfleurs.fr:sptl/garage_website
Diffstat (limited to 'templates/partials/doc/global_toc.html')
-rw-r--r--templates/partials/doc/global_toc.html18
1 files changed, 15 insertions, 3 deletions
diff --git a/templates/partials/doc/global_toc.html b/templates/partials/doc/global_toc.html
index ebad287..f739f49 100644
--- a/templates/partials/doc/global_toc.html
+++ b/templates/partials/doc/global_toc.html
@@ -1,8 +1,20 @@
-<aside id="global_toc" class="col-span-1 h-max bg-gray-100 shadow-inner border-r border-t border-gray-200">
+<aside id="global_toc" class="relative col-span-1 h-full bg-gray-100 shadow-inner border-r border-t border-gray-200">
{% if section.subsections %}
- <ul class="space-y-2 py-0.5 px-6 py-3 list-none">
+ <ul id="main-toc-menu" class="space-y-2 px-6 py-3 list-none">
+
+ {% if section.pages %}
+ {% for page in section.pages %}
+ <a
+ href="{{ page.permalink | safe }}"
+ class="docPage block pl-2 py-1 border-l rounded-r border-garage-orange hover:bg-garage-orange hover:bg-opacity-20
+ {% if current_path == page.path %} activePage border-l-4 text-garage-orange font-semibold border-opacity-100 border-garage-orange {% endif %}">
+ {{ page.title }}
+ </a>
+ {% endfor %}
+ {% endif %}
+
{% for subsec in section.subsections %}
- {% set h1 = get_section(path=subsec) %}
+ {% set h1 = get_section(path=subsec) %}
<li class="relative">
<a
href="{{ h1.permalink | safe }}"