mkdocs-material/material/partials/source.html

19 lines
614 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">
<li class="md-source__fact">v0.2.4</li>
</ul>
</div>
</a>