mkdocs-material/material/partials/source.html

21 lines
662 B
HTML
Raw Normal View History

{% 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>