mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Add config.extra.repo_icon option for source icon
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block libs %}
|
{% block libs %}
|
||||||
<script src="{{ base_url }}/assets/javascripts/modernizr-934476c231.js"></script>
|
<script src="{{ base_url }}/assets/javascripts/modernizr-dadbf8711d.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block fonts %}
|
{% block fonts %}
|
||||||
{% include "partials/fonts.html" %}
|
{% include "partials/fonts.html" %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% set platform = config.repo_url %}
|
{% set platform = config.extra.repo_icon or config.repo_url %}
|
||||||
{% if "github" in platform %}
|
{% if "github" in platform %}
|
||||||
{% set repo_type = "github" %}
|
{% set repo_type = "github" %}
|
||||||
{% elif "gitlab" in platform %}
|
{% elif "gitlab" in platform %}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
Check whether the repository is hosted on one of the supported code hosting
|
Check whether the repository is hosted on one of the supported code hosting
|
||||||
platforms (Github, Gitlab or Bitbucket) to show icon.
|
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 %}
|
{% if "github" in platform %}
|
||||||
{% set repo_type = "github" %}
|
{% set repo_type = "github" %}
|
||||||
{% elif "gitlab" in platform %}
|
{% elif "gitlab" in platform %}
|
||||||
|
|||||||
Reference in New Issue
Block a user