source.html 861 B

1234567891011121314151617181920212223242526
  1. {#-
  2. This file was automatically generated - do not edit
  3. -#}
  4. {% import "partials/language.html" as lang with context %}
  5. {% set platform = config.extra.repo_icon or config.repo_url %}
  6. {% if "github" in platform %}
  7. {% set repo_type = "github" %}
  8. {% elif "gitlab" in platform %}
  9. {% set repo_type = "gitlab" %}
  10. {% elif "bitbucket" in platform %}
  11. {% set repo_type = "bitbucket" %}
  12. {% else %}
  13. {% set repo_type = "" %}
  14. {% endif %}
  15. <a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" class="md-source" data-md-source="{{ repo_type }}">
  16. {% if repo_type %}
  17. <div class="md-source__icon">
  18. <svg viewBox="0 0 24 24" width="24" height="24">
  19. <use xlink:href="#__{{ repo_type }}" width="24" height="24"></use>
  20. </svg>
  21. </div>
  22. {% endif %}
  23. <div class="md-source__repository">
  24. {{ config.repo_name }}
  25. </div>
  26. </a>