mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
19 lines
614 B
HTML
19 lines
614 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">
|
|
<li class="md-source__fact">v0.2.4</li>
|
|
</ul>
|
|
</div>
|
|
</a>
|