1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 17:30:56 +01:00
mkdocs-material/material/partials/source.html

18 lines
556 B
HTML

{% if "github." in repo_url %}
{% set platform = "md-source--github" %}
{% elif "gitlab." in repo_url %}
{% set platform = "md-source--gitlab" %}
{% elif "bitbucket." in repo_url %}
{% set platform = "md-source--bitbucket" %}
{% else %}
{% set platform = "" %}
{% endif %}
<a href="{{ repo_url }}" title="Go to repository" class="md-source {{ platform }}">
<div class="md-source__repository">
{{ repo_name }}
<ul class="md-source__facts">
<li class="md-source__fact">v0.2.4</li>
</ul>
</div>
</a>