From c35d1050e0ce8ba82f8cbab3f6940cfc4af1f8d1 Mon Sep 17 00:00:00 2001 From: Che <43485962+c-git@users.noreply.github.com> Date: Sun, 29 May 2022 04:21:07 -0400 Subject: [PATCH 1/6] PyCharm Format Clean up indentation and whitespace --- templates/index.html | 223 ++++++++++++++++++++++--------------------- 1 file changed, 113 insertions(+), 110 deletions(-) diff --git a/templates/index.html b/templates/index.html index 041abbe..2cd8631 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,137 +1,140 @@ - - - - {% if config.extra.favicon %} + + + + {% if config.extra.favicon %} - {% endif %} - - {% block title %}{{ config.title }}{% endblock title %} - - + {% endif %} + + {% block title %}{{ config.title }}{% endblock title %} + + - {% if config.extra.release %} +{% if config.extra.release %} - {% endif %} -
+{% endif %} +
- {% block nav %} + {% block nav %} + {% if page.toc %} + + {% if current_path == page.path %} + + {% set_global header_count = 0 %} + {% for h2 in page.toc %} + {% set_global header_count = header_count + 1 %} + {% for h3 in h2.children %} + {% set_global header_count = header_count + 1 %} + {% for h4 in h3.children %} + {% set_global header_count = header_count + 1 %} + {% endfor %} + {% endfor %} + {% endfor %} + + {% if header_count > 4 %} + + {% endif %} + + {% endif %} + {% endif %} + {% endfor %} + + {% endfor %} + + {% endblock nav %} -
- - {% if config.build_search_index %} -
- -
-
- -
-
-
    -
    -
    - {% endif %} +
    -
    - {% block content %} - {{ section.content | safe }} - {% endblock content %} -
    + {% if config.build_search_index %} +
    + +
    +
    + +
    +
    +
      +
      +
      + {% endif %} -
      +
      + {% block content %} + {{ section.content | safe }} + {% endblock content %} +
      + +
      - {% if config.build_search_index %} - - - - {% endif %} +{% if config.build_search_index %} + + + +{% endif %} From dfc3acd35c9a2fadaff7b09ab6a1f69a73ee50fd Mon Sep 17 00:00:00 2001 From: Che <43485962+c-git@users.noreply.github.com> Date: Sun, 29 May 2022 04:24:15 -0400 Subject: [PATCH 2/6] Add search for favicon and logo --- templates/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 2cd8631..d1486bf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ {% if config.extra.favicon %} - + {% endif %} {% block title %}{{ config.title }}{% endblock title %} @@ -31,10 +31,10 @@