diff --git a/theme/partials/header.html b/theme/partials/header.html index 4741726..9818c1f 100644 --- a/theme/partials/header.html +++ b/theme/partials/header.html @@ -1,41 +1,92 @@ + + + + + + + - + {% if config.theme.logo.icon %} - {{ config.theme.logo.icon }} + {{ config.theme.logo.icon }} {% else %} - + {% endif %} + + - + + + - - {% block site_name %} + {% if config.site_name == page.title %} - {{ config.site_name }} - {% else %} - {{ config.site_name }} - - - {{ page.title }} - + {% else %} + + {{ config.site_name }} + + + {% if page and page.meta and page.meta.title %} + {{ page.meta.title }} + {% else %} + {{ page.title }} + {% endif %} + {% endif %} - {% endblock %} - {% if config.repo_url %} + + - - {% include "partials/source.html" %} - + {% if "search" in config["plugins"] %} + + + + {% include "partials/search.html" %} + {% endif %} + + + {% if config.repo_url %} + + + {% include "partials/source.html" %} + + {% endif %} + @@ -51,14 +102,7 @@ - - {% block search_box %} - {% if "search" in config["plugins"] %} - - {% include "partials/search.html" %} - {% endif %} - {% endblock %} - + diff --git a/theme/partials/nav.html b/theme/partials/nav.html index 27e07aa..28a67c1 100644 --- a/theme/partials/nav.html +++ b/theme/partials/nav.html @@ -1,19 +1,48 @@ + + + - - + + + + {% if config.theme.logo.icon %} - {{ config.theme.logo.icon }} + {{ config.theme.logo.icon }} {% else %} - + {% endif %} - + {{ config.site_name }} + + {% if config.repo_url %} - - {% include "partials/source.html" %} - + + {% include "partials/source.html" %} + {% endif %} + @@ -27,11 +56,13 @@ + + {% for nav_item in nav %} - {% set path = "nav-" + loop.index | string %} - {% set level = 1 %} - {% include "partials/nav-item.html" %} + {% set path = "nav-" + loop.index | string %} + {% set level = 1 %} + {% include "partials/nav-item.html" %} {% endfor %}