Commit 4c928684 authored by Pili Guerra's avatar Pili Guerra
Browse files

Template fixes

parent cc5ad113
_model: page
---
section: training
---
section_id: training
......
_model: page
---
section: training
---
section_id: training
......
......@@ -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>
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment