diff --git a/material/partials/header.html b/material/partials/header.html index e631fd5f1..361de5145 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -38,13 +38,11 @@ {% endblock %}
- {% block repo %} - {% if config.repo_url %} -
- {% include "partials/source.html" %} -
- {% endif %} - {% endblock %} + {% if config.repo_url %} +
+ {% include "partials/source.html" %} +
+ {% endif %}
diff --git a/material/partials/source.html b/material/partials/source.html index 2c17bb71f..5dbaee2e6 100644 --- a/material/partials/source.html +++ b/material/partials/source.html @@ -9,15 +9,17 @@ {% else %} {% set repo_type = "" %} {% endif %} - - {% if repo_type %} -
- - - +{% block repo %} + + {% if repo_type %} +
+ + + +
+ {% endif %} +
+ {{ config.repo_name }}
- {% endif %} -
- {{ config.repo_name }} -
-
+ +{% endblock %} diff --git a/src/partials/header.html b/src/partials/header.html index b874153cc..db6947f04 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -79,13 +79,11 @@
- {% block repo %} - {% if config.repo_url %} -
- {% include "partials/source.html" %} -
- {% endif %} - {% endblock %} + {% if config.repo_url %} +
+ {% include "partials/source.html" %} +
+ {% endif %}
diff --git a/src/partials/source.html b/src/partials/source.html index 1ed97c068..9c8273b9d 100644 --- a/src/partials/source.html +++ b/src/partials/source.html @@ -38,16 +38,18 @@ {% endif %} - - {% if repo_type %} -
- - - +{% block repo %} + + {% if repo_type %} +
+ + + +
+ {% endif %} +
+ {{ config.repo_name }}
- {% endif %} -
- {{ config.repo_name }} -
-
+ +{% endblock %}