Add config.extra.repo_icon option for source icon
This commit is contained in:
parent
6364de1a2d
commit
1e35478b44
|
|
@ -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 %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue