diff --git a/config.toml b/config.toml index a64e473..6ca64e5 100644 --- a/config.toml +++ b/config.toml @@ -10,4 +10,5 @@ highlight_theme = "base16-ocean-light" [extra] logo = "https://easydocs.codeandmedia.com/logo.svg" release = "https://api.github.com/repos/getzola/zola/releases/latest" -favicon = "https://www.getzola.org/favicon.ico" \ No newline at end of file +favicon = "https://www.getzola.org/favicon.ico" +easydocs_logo_always_clickable = false \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 041abbe..32c157f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,137 +1,147 @@ - - - - {% if config.extra.favicon %} - - {% endif %} - - {% block title %}{{ config.title }}{% endblock title %} - - + + + + {% if config.extra.favicon %} + {% set _favicon = config.extra.favicon %} + {% if (_favicon is starting_with("http")) == false %} + {% set _favicon = get_url(path=config.extra.favicon) %} + {% endif %} + + {% 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 %} diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..abbf1a2 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,23 @@ +{% extends "index.html" %} + +{% block title %} {{ config.title }} | {{ section.title }} {% endblock title %} + + +{% block content %} + {% if section.word_count > 0 %} + {{ section.content }} + {% else %} +

      + {{ section.title }} +

      + Pages: + + {% endif %} +{% endblock content %} + + +