From eaeba59dd8262f0603f6263e626772426f90e22e Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 16 Oct 2016 17:08:34 +0200 Subject: [PATCH] Added guards for repository banner --- material/partials/header.html | 4 +++- material/partials/nav.html | 8 +++++--- src/partials/header.html | 4 +++- src/partials/nav.html | 8 +++++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/material/partials/header.html b/material/partials/header.html index 460cafe75..ed3f9a5c4 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -24,7 +24,9 @@
- {% include "partials/source.html" %} + {% if repo_url %} + {% include "partials/source.html" %} + {% endif %}
diff --git a/material/partials/nav.html b/material/partials/nav.html index 2be7dae37..2bdbf7bed 100644 --- a/material/partials/nav.html +++ b/material/partials/nav.html @@ -6,7 +6,9 @@ {% include "partials/nav-item.html" %} {% endfor %} -
- {% include "partials/source.html" %} -
+ {% if repo_url %} +
+ {% include "partials/source.html" %} +
+ {% endif %} diff --git a/src/partials/header.html b/src/partials/header.html index 478a773b8..05618f40f 100644 --- a/src/partials/header.html +++ b/src/partials/header.html @@ -64,7 +64,9 @@
- {% include "partials/source.html" %} + {% if repo_url %} + {% include "partials/source.html" %} + {% endif %}
diff --git a/src/partials/nav.html b/src/partials/nav.html index 488d77391..37024a718 100644 --- a/src/partials/nav.html +++ b/src/partials/nav.html @@ -29,7 +29,9 @@ {% include "partials/nav-item.html" %} {% endfor %} -
- {% include "partials/source.html" %} -
+ {% if repo_url %} +
+ {% include "partials/source.html" %} +
+ {% endif %}