mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
♻️ refactor(series): simplify page_or_section logic
This commit is contained in:
parent
5c4ae35ef4
commit
a07c234113
1 changed files with 1 additions and 5 deletions
|
@ -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" %}
|
||||
<div id="button-container">
|
||||
{# Button to go show a floating Table of Contents #}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue