Fix for showing repository icon even when a file has no edit_uri (#3657)

This needed to be updated when upgrading the mkdocs theme to newer Bootstrap but got missed.

Right now it shows up as a missing glyph.
This commit is contained in:
Oleh Prypin
2024-04-20 19:48:23 +02:00
committed by GitHub
parent 0ac05daaa1
commit bce85bf2a6

View File

@@ -156,11 +156,11 @@
<li class="nav-item"> <li class="nav-item">
<a href="{{ config.repo_url }}" class="nav-link"> <a href="{{ config.repo_url }}" class="nav-link">
{%- if config.repo_name == 'GitHub' -%} {%- if config.repo_name == 'GitHub' -%}
<i class="fa fa-github"></i> {{ config.repo_name }} <i class="fa-brands fa-github"></i> {{ config.repo_name }}
{%- elif config.repo_name == 'Bitbucket' -%} {%- elif config.repo_name == 'Bitbucket' -%}
<i class="fa fa-bitbucket"></i> {{ config.repo_name }} <i class="fa-brands fa-bitbucket"></i> {{ config.repo_name }}
{%- elif config.repo_name == 'GitLab' -%} {%- elif config.repo_name == 'GitLab' -%}
<i class="fa fa-gitlab"></i> {{ config.repo_name }} <i class="fa-brands fa-gitlab"></i> {{ config.repo_name }}
{%- else -%} {%- else -%}
{{ config.repo_name }} {{ config.repo_name }}
{%- endif -%} {%- endif -%}