From 24c58d8fd49c9bf27fbae7acd1cac50b57eabd92 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 1 Feb 2020 13:59:12 +0100 Subject: [PATCH] Removed platform detection from repository markup --- material/partials/source.html | 12 +----------- src/partials/source.html | 16 ---------------- 2 files changed, 1 insertion(+), 27 deletions(-) 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") %}