[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/staging] Template fixes
commit 4c928684805ff3e4a39aad0052cf13c938bc9017
Author: Pili Guerra <pili@xxxxxxxxxxxxxx>
Date: Thu Jun 13 15:24:54 2019 +0200
Template fixes
---
content/training/best-practices/contents.lr | 2 ++
content/training/resources/contents.lr | 2 ++
templates/sidenav.html | 2 +-
templates/two-columns-page.html | 3 +--
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/content/training/best-practices/contents.lr b/content/training/best-practices/contents.lr
index 741685b..09e08aa 100644
--- a/content/training/best-practices/contents.lr
+++ b/content/training/best-practices/contents.lr
@@ -1,3 +1,5 @@
+_model: page
+---
section: training
---
section_id: training
diff --git a/content/training/resources/contents.lr b/content/training/resources/contents.lr
index c453189..942724c 100644
--- a/content/training/resources/contents.lr
+++ b/content/training/resources/contents.lr
@@ -1,3 +1,5 @@
+_model: page
+---
section: training
---
section_id: training
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>
diff --git a/templates/two-columns-page.html b/templates/two-columns-page.html
index 51437e6..1823730 100644
--- a/templates/two-columns-page.html
+++ b/templates/two-columns-page.html
@@ -16,5 +16,4 @@
</div>
<a href="{{ this.parent|url }}">Back to {{ this.parent.title }}</a>
</div>
-</div>
-
+</div>
\ No newline at end of file
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits