From a07c234113dd42509312e03279ffb993671aa5fd Mon Sep 17 00:00:00 2001 From: welpo Date: Thu, 7 Nov 2024 23:07:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(series):=20simpli?= =?UTF-8?q?fy=20page=5For=5Fsection=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/extra_features.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/partials/extra_features.html b/templates/partials/extra_features.html index 329a6ec..46a10df 100644 --- a/templates/partials/extra_features.html +++ b/templates/partials/extra_features.html @@ -1,9 +1,5 @@ +{%- set page_or_section = page | default(value=section) -%} {# Quick navigation buttons #} -{%- if page -%} - {%- set_global page_or_section = page -%} -{%- elif section -%} - {%- set_global page_or_section = section -%} -{%- endif -%} {% if macros_settings::evaluate_setting_priority(setting="quick_navigation_buttons", page=page_or_section, default_global_value=false) == "true" %}
{# Button to go show a floating Table of Contents #}