From 1e35478b44c0a4214182fda72ebf4b7856f90dc4 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 28 Dec 2016 14:50:11 +0100 Subject: [PATCH] Add config.extra.repo_icon option for source icon --- material/base.html | 2 +- material/partials/source.html | 2 +- src/partials/source.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/material/base.html b/material/base.html index 2d2411363..4d4f89d19 100644 --- a/material/base.html +++ b/material/base.html @@ -30,7 +30,7 @@ {% endif %} {% endblock %} {% block libs %} - + {% endblock %} {% block fonts %} {% include "partials/fonts.html" %} diff --git a/material/partials/source.html b/material/partials/source.html index 5c4a66e4b..46d2c6728 100644 --- a/material/partials/source.html +++ b/material/partials/source.html @@ -1,4 +1,4 @@ -{% set platform = config.repo_url %} +{% set platform = config.extra.repo_icon or config.repo_url %} {% if "github" in platform %} {% set repo_type = "github" %} {% elif "gitlab" in platform %} diff --git a/src/partials/source.html b/src/partials/source.html index f41487505..c2194ba35 100644 --- a/src/partials/source.html +++ b/src/partials/source.html @@ -24,7 +24,7 @@ Check whether the repository is hosted on one of the supported code hosting platforms (Github, Gitlab or Bitbucket) to show icon. --> -{% set platform = config.repo_url %} +{% set platform = config.extra.repo_icon or config.repo_url %} {% if "github" in platform %} {% set repo_type = "github" %} {% elif "gitlab" in platform %}