From fde28c3f477666b1860b9879333e25b8dce57789 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 6 Jan 2017 19:08:09 +0100 Subject: [PATCH] Put repo block definition in source.html --- material/partials/header.html | 12 +++++------- material/partials/source.html | 24 +++++++++++++----------- src/partials/header.html | 12 +++++------- src/partials/source.html | 26 ++++++++++++++------------ 4 files changed, 37 insertions(+), 37 deletions(-) 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 %}