diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-07-12 12:34:40 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-07-12 12:34:40 +0200 |
commit | 1c179a7c913ec0f7d787decebc8026ea9fa4ab6b (patch) | |
tree | d14e21ae0a6f06d2a90bbe5721a664a8bd176ea9 | |
parent | 5e7de9d3f5269ce37882f445fa1855b57685b91e (diff) |
Display contents of section on page as well
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | templates/page.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html index fc8a52e..afb93e6 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,6 +10,10 @@ {% endfor %} </ul> <h1>{{ page.title }}</h1><em>{{ page.description | safe }}</em> + + {% set parent = page.ancestors | last %} + {% set parent_section = get_section(path=parent) %} + {{ macro::tree(sec=parent_section) }} {% endblock nav %} {% block content %} |