Skip to content

Commit

Permalink
templates: docs: section.html: order subsections by weight
Browse files Browse the repository at this point in the history
  • Loading branch information
ES-Alexander committed Jun 9, 2022
1 parent 724c13e commit 514e556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/docs/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ <h1 class="text-center">{{ section.title }}</h1>
</div>
</div>
{% endfor %}
{# Have the newest version first #}
{% set subsections = index.subsections | sort | reverse %}
{# Sections sorted by weight #}
{% set subsections = index.subsections %}
{% for s in subsections %}
{% set subsection = get_section(path=s) %}
{% set_global subsection_title = subsection.title ~ ' →' %}
Expand Down

0 comments on commit 514e556

Please sign in to comment.