1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Add config.extra.repo_icon option for source icon

This commit is contained in:
squidfunk 2016-12-28 14:50:11 +01:00
parent 6364de1a2d
commit 1e35478b44
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
{% endif %}
{% endblock %}
{% block libs %}
<script src="{{ base_url }}/assets/javascripts/modernizr-934476c231.js"></script>
<script src="{{ base_url }}/assets/javascripts/modernizr-dadbf8711d.js"></script>
{% endblock %}
{% block fonts %}
{% include "partials/fonts.html" %}

View File

@ -1,4 +1,4 @@
{% set platform = config.repo_url %}
{% set platform = config.extra.repo_icon or config.repo_url %}
{% if "github" in platform %}
{% set repo_type = "github" %}
{% elif "gitlab" in platform %}

View File

@ -24,7 +24,7 @@
Check whether the repository is hosted on one of the supported code hosting
platforms (Github, Gitlab or Bitbucket) to show icon.
-->
{% set platform = config.repo_url %}
{% set platform = config.extra.repo_icon or config.repo_url %}
{% if "github" in platform %}
{% set repo_type = "github" %}
{% elif "gitlab" in platform %}