1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-03 11:37:17 +01:00
mkdocs-material/material/partials/source-link.html

15 lines
548 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 %}
{% set path = page.meta.path | default([""]) %}
2020-03-06 10:37:28 +01: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>