[tor-commits] [manual/master] Fix active 'nav-item' in side nav mobile view

gus at torproject.org gus at torproject.org
Fri Apr 10 20:14:28 UTC 2020


commit 7f6cc269e39651f4615ecf399b34937d5ad25c19
Author: Nicolei Ocana <nicoleiocana at gmail.com>
Date:   Wed Apr 1 18:42:43 2020 +0000

    Fix active 'nav-item' in side nav mobile view
---
 templates/sidenav.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/sidenav.html b/templates/sidenav.html
index 3a154a1..9fab4c0 100644
--- a/templates/sidenav.html
+++ b/templates/sidenav.html
@@ -15,7 +15,7 @@
       <ul class="nav nav-pills flex-column">
 	{% set topicbag = 'topics' %}
 	{% for id, item in bag(topicbag).items() %}
-	<li{% if this.is_child_of(item.path) %} class="nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
+	<li{% if this.is_child_of(item.path) %} class="toc-entry toc-h2 active nav-item" {% else %} class="toc-entry toc-h2 nav-item"{% endif %}>
     {% if this.alt != "en" %}
     {% set p = '/' + this.alt + '/' + item.path %}
     {% else %}





More information about the tor-commits mailing list