mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
21 lines
662 B
HTML
21 lines
662 B
HTML
{% set platform = config.extra.repo_icon or repo_url %}
|
|
{% if "github" in platform %}
|
|
{% set repo_icon = "md-source--github" %}
|
|
{% elif "gitlab" in platform %}
|
|
{% set repo_icon = "md-source--gitlab" %}
|
|
{% elif "bitbucket" in platform %}
|
|
{% set repo_icon = "md-source--bitbucket" %}
|
|
{% else %}
|
|
{% set repo_icon = "" %}
|
|
{% endif %}
|
|
<a href="{{ repo_url }}" title="Go to repository" class="md-source {{ repo_icon }}">
|
|
<div class="md-source__repository">
|
|
{{ repo_name }}
|
|
<ul class="md-source__facts">
|
|
{% if config.extra.version %}
|
|
<li class="md-source__fact">v{{ config.extra.version }}</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</a>
|