source-link.html 546 B

1234567891011121314
  1. {#-
  2. This file was automatically generated - do not edit
  3. -#}
  4. {% import "partials/language.html" as lang with context %}
  5. {% set repo = config.repo_url %}
  6. {% if repo | last == "/" %}
  7. {% set repo = repo[:-1] %}
  8. {% endif %}
  9. {% set path = page.meta.path | default("") %}
  10. <a href="{{ [repo, path, page.meta.source] | join('/') }}" title="{{ page.meta.source }}" class="md-content__button md-icon">
  11. {{ lang.t("meta.source") }}
  12. {% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
  13. {% include ".icons/" ~ icon ~ ".svg" %}
  14. </a>