fix top element color

This commit is contained in:
occheung 2021-06-02 14:31:04 +08:00
parent 49488577f8
commit 9bcda6af08

View File

@ -71,8 +71,8 @@
{% for section in section.subsections %} {% for section in section.subsections %}
{% set subsection = get_section(path=section) %} {% set subsection = get_section(path=section) %}
{% set root_current_path = current_path | split(pat='/') | first %} {% set root_current_path = current_path | trim_start_matches(pat='/') | split(pat='/') | first %}
{% set root_section_path = subsection.path | split(pat='/') | first %} {% set root_section_path = subsection.path | trim_start_matches(pat='/') | split(pat='/') | first %}
{% if subsection.pages|length > 0 and subsection.title != 'Other' %} {% if subsection.pages|length > 0 and subsection.title != 'Other' %}