From e0fb064b1dbfb4907efdfdb1e1353460918dc25d Mon Sep 17 00:00:00 2001 From: david-swift Date: Tue, 18 Mar 2025 15:55:59 +0100 Subject: [PATCH] Access parent section in subprojects --- templates/subproject.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/subproject.html b/templates/subproject.html index 5094769..d307f51 100644 --- a/templates/subproject.html +++ b/templates/subproject.html @@ -9,6 +9,8 @@ {%- set list_element = "ul" -%} {%- endif -%} +{%- set section = get_section(path=page.ancestors | last) -%} +
{%- if page.extra.banner -%}