From f5f195c90cb2e6f0e1f3287e1e7df8f39203f132 Mon Sep 17 00:00:00 2001 From: Martijn Faassen Date: Thu, 30 May 2024 14:02:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20improve=20sett?= =?UTF-8?q?ings=20hierarchy=20performance=20(#325)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/macros/settings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/settings.html b/templates/macros/settings.html index 5ceec56..b00c7e4 100644 --- a/templates/macros/settings.html +++ b/templates/macros/settings.html @@ -16,7 +16,7 @@ Parameters: {%- elif page -%} {#- Retrieve last ancestor to determine current section, if applicable -#} {%- set last_ancestor = page.ancestors | slice(start=-1) %} - {%- set current_section = get_section(path=last_ancestor.0) %} + {%- set current_section = get_section(path=last_ancestor.0, metadata_only=true) %} {%- endif -%} {%- set priority_order = [