Skip to content
Snippets Groups Projects
Commit 1d5817e9 authored by squidfunk's avatar squidfunk
Browse files

Added ability to set absolute URL for logo

parent 2a48e17d
No related branches found
No related tags found
No related merge requests found
mkdocs-material-2.7.0 (2018-03-06)
* Added ability to set absolute URL for logo
mkdocs-material-2.6.6 (2018-02-22)
* Added preconnect for Google Fonts for faster loading
......
......@@ -85,7 +85,7 @@
{% if "github" in platform %}
{% include "assets/images/icons/github.a4034fb1.svg" %}
{% elif "gitlab" in platform %}
{% include "assets/images/icons/gitlab.d80e5efc.svg" %}
{% include "assets/images/icons/gitlab.348cdb3a.svg" %}
{% elif "bitbucket" in platform %}
{% include "assets/images/icons/bitbucket.4ebea66e.svg" %}
{% endif %}
......@@ -173,7 +173,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application.e437c97b.js"></script>
<script src="{{ base_url }}/assets/javascripts/application.189d7058.js"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}
......
......@@ -5,6 +5,8 @@
<a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo">
{% if config.theme.logo.icon %}
<i class="md-icon">{{ config.theme.logo.icon }}</i>
{% elif config.theme.logo.startswith("http") %}
<img src="{{ config.theme.logo }}" width="24" height="24">
{% else %}
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
{% endif %}
......
......@@ -3,8 +3,10 @@
<span class="md-nav__button md-logo">
{% if config.theme.logo.icon %}
<i class="md-icon">{{ config.theme.logo.icon }}</i>
{% elif config.theme.logo.startswith("http") %}
<img src="{{ config.theme.logo }}" width="48" height="48">
{% else %}
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
<img src="{{ base_url }}/{{ config.theme.logo }}" width="48" height="48">
{% endif %}
</span>
{{ config.site_name }}
......
......@@ -34,6 +34,8 @@
class="md-header-nav__button md-logo">
{% if config.theme.logo.icon %}
<i class="md-icon">{{ config.theme.logo.icon }}</i>
{% elif config.theme.logo.startswith("http") %}
<img src="{{ config.theme.logo }}" width="24" height="24" />
{% else %}
<img src="{{ base_url }}/{{ config.theme.logo }}"
width="24" height="24" />
......
......@@ -28,9 +28,11 @@
<span class="md-nav__button md-logo">
{% if config.theme.logo.icon %}
<i class="md-icon">{{ config.theme.logo.icon }}</i>
{% elif config.theme.logo.startswith("http") %}
<img src="{{ config.theme.logo }}" width="48" height="48" />
{% else %}
<img src="{{ base_url }}/{{ config.theme.logo }}"
width="24" height="24" />
width="48" height="48" />
{% endif %}
</span>
{{ config.site_name }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment