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 %} {% 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" %}

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 %} {% if "github" in platform %}
{% set repo_type = "github" %} {% set repo_type = "github" %}
{% elif "gitlab" in platform %} {% elif "gitlab" in platform %}

View File

@ -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 %}