[tor-commits] [community/staging] sort topics by key
pili at torproject.org
pili at torproject.org
Thu Jun 6 11:13:30 UTC 2019
commit 2aeb17bcb505c8eb5990ddffb6608df31a64ec19
Author: Pili Guerra <pili at piliguerra.com>
Date: Thu Jun 6 13:12:36 2019 +0200
sort topics by key
---
templates/sidenav.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/sidenav.html b/templates/sidenav.html
index 489faeb..3732254 100644
--- a/templates/sidenav.html
+++ b/templates/sidenav.html
@@ -27,7 +27,7 @@
<nav class="d-none d-sm-block section-nav bg-white sidetopics sticky" id="sidenav-topics">
<h4 class="text-primary pl-4">{{ _("Topics") }}</h4>
<ul class="nav nav-pills flex-column">
- {% for child in this.parent.children %}
+ {% for child in this.parent.children|sort(attribute='key') %}
<li{% if this.is_child_of(child.path) %} class="toc-entry toc-h2 active nav-item" {% else %} class="toc-entry toc-h2 nav-item" {% endif %}>
<a role="button" {% if this.is_child_of(child.path) %} class="nav-link active" {% else %} class="nav-link" {% endif %}
href="{{ child.path|url(alt=this.alt) }}">{{ _(child.title) }}</a>
More information about the tor-commits
mailing list