sections/sorted

This commit is contained in:
Marc Beninca 2023-01-10 23:26:13 +01:00
parent 9cf9eb8e7e
commit 7f2fbfcfb4

View file

@ -45,7 +45,7 @@ def nav(sections, active):
def body(sections): def body(sections):
html = [] html = []
for section in sections.values(): for _, section in sorted(sections.items()):
html.append(f'<section id="{section["id"]}">') html.append(f'<section id="{section["id"]}">')
html.append(section['content']) html.append(section['content'])
html.append('</section>') html.append('</section>')