diff --git a/material/partials/source.html b/material/partials/source.html index c3999193c..2548e94d2 100644 --- a/material/partials/source.html +++ b/material/partials/source.html @@ -2,17 +2,7 @@ This file was automatically generated - do not edit -#} {% import "partials/language.html" as lang with context %} -{% set platform = config.repo_url %} -{% if "github" in platform %} - {% set repo_type = "github" %} -{% elif "gitlab" in platform %} - {% set repo_type = "gitlab" %} -{% elif "bitbucket" in platform %} - {% set repo_type = "bitbucket" %} -{% else %} - {% set repo_type = "" %} -{% endif %} - +
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %} {% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %} diff --git a/src/partials/source.html b/src/partials/source.html index 9f5bda189..08e2c49a4 100644 --- a/src/partials/source.html +++ b/src/partials/source.html @@ -22,27 +22,11 @@ {% import "partials/language.html" as lang with context %} - -{% set platform = config.repo_url %} -{% if "github" in platform %} - {% set repo_type = "github" %} -{% elif "gitlab" in platform %} - {% set repo_type = "gitlab" %} -{% elif "bitbucket" in platform %} - {% set repo_type = "bitbucket" %} -{% else %} - {% set repo_type = "" %} -{% endif %} -
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}