2019-09-28 19:42:54 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% import "partials/language.html" as lang with context %}
|
2019-12-23 20:24:24 +01:00
|
|
|
{% set platform = config.repo_url %}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% 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 %}
|
|
|
|
<a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" class="md-source" data-md-source="{{ repo_type }}">
|
|
|
|
{% if repo_type %}
|
|
|
|
<div class="md-source__icon">
|
2019-12-23 20:24:24 +01:00
|
|
|
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
|
|
|
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
2019-06-15 15:16:14 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="md-source__repository">
|
2019-06-15 15:23:03 +02:00
|
|
|
{{ config.repo_name }}
|
2019-06-15 15:16:14 +02:00
|
|
|
</div>
|
|
|
|
</a>
|