mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Always render repo icon, no matter what kind of repository
This commit is contained in:
parent
e1c5953ae6
commit
980054a0d1
@ -13,12 +13,10 @@
|
||||
{% set repo_type = "" %}
|
||||
{% endif %}
|
||||
<a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" class="md-source" data-md-source="{{ repo_type }}">
|
||||
{% if repo_type %}
|
||||
<div class="md-source__icon">
|
||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__icon">
|
||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||
</div>
|
||||
<div class="md-source__repository">
|
||||
{{ config.repo_name }}
|
||||
</div>
|
||||
|
@ -44,12 +44,10 @@
|
||||
class="md-source"
|
||||
data-md-source="{{ repo_type }}"
|
||||
>
|
||||
{% if repo_type %}
|
||||
<div class="md-source__icon">
|
||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__icon">
|
||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||
</div>
|
||||
<div class="md-source__repository">
|
||||
{{ config.repo_name }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user