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 = "" %}
|
{% set repo_type = "" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" class="md-source" data-md-source="{{ repo_type }}">
|
<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">
|
<div class="md-source__icon">
|
||||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
<div class="md-source__repository">
|
<div class="md-source__repository">
|
||||||
{{ config.repo_name }}
|
{{ config.repo_name }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,12 +44,10 @@
|
|||||||
class="md-source"
|
class="md-source"
|
||||||
data-md-source="{{ repo_type }}"
|
data-md-source="{{ repo_type }}"
|
||||||
>
|
>
|
||||||
{% if repo_type %}
|
|
||||||
<div class="md-source__icon">
|
<div class="md-source__icon">
|
||||||
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
{% set repo_icon = config.extra.repo_icon | default("brands/git-alt") %}
|
||||||
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
{% include "assets/images/icons/fontawesome/" ~ repo_icon ~ ".svg" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
<div class="md-source__repository">
|
<div class="md-source__repository">
|
||||||
{{ config.repo_name }}
|
{{ config.repo_name }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user