mkdocs-material/material/partials/source-link.html

15 lines
546 B
HTML
Raw Normal View History

{#-
This file was automatically generated - do not edit
-#}
{% import "partials/language.html" as lang with context %}
{% set repo = config.repo_url %}
{% if repo | last == "/" %}
{% set repo = repo[:-1] %}
{% endif %}
2020-07-17 00:05:57 +03:00
{% set path = page.meta.path | default("") %}
2020-03-06 12:37:28 +03:00
<a href="{{ [repo, path, page.meta.source] | join('/') }}" title="{{ page.meta.source }}" class="md-content__button md-icon">
{{ lang.t("meta.source") }}
{% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</a>