mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added ability to set absolute URL for logo
This commit is contained in:
parent
2a48e17d2d
commit
1d5817e919
@ -1,3 +1,7 @@
|
|||||||
|
mkdocs-material-2.7.0 (2018-03-06)
|
||||||
|
|
||||||
|
* Added ability to set absolute URL for logo
|
||||||
|
|
||||||
mkdocs-material-2.6.6 (2018-02-22)
|
mkdocs-material-2.6.6 (2018-02-22)
|
||||||
|
|
||||||
* Added preconnect for Google Fonts for faster loading
|
* Added preconnect for Google Fonts for faster loading
|
||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
File diff suppressed because one or more lines are too long
@ -85,7 +85,7 @@
|
|||||||
{% if "github" in platform %}
|
{% if "github" in platform %}
|
||||||
{% include "assets/images/icons/github.a4034fb1.svg" %}
|
{% include "assets/images/icons/github.a4034fb1.svg" %}
|
||||||
{% elif "gitlab" in platform %}
|
{% elif "gitlab" in platform %}
|
||||||
{% include "assets/images/icons/gitlab.d80e5efc.svg" %}
|
{% include "assets/images/icons/gitlab.348cdb3a.svg" %}
|
||||||
{% elif "bitbucket" in platform %}
|
{% elif "bitbucket" in platform %}
|
||||||
{% include "assets/images/icons/bitbucket.4ebea66e.svg" %}
|
{% include "assets/images/icons/bitbucket.4ebea66e.svg" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -173,7 +173,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% 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" %}
|
{% if lang.t("search.language") != "en" %}
|
||||||
{% set languages = lang.t("search.language").split(",") %}
|
{% set languages = lang.t("search.language").split(",") %}
|
||||||
{% if languages | length and languages[0] != "" %}
|
{% 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">
|
<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 %}
|
{% if config.theme.logo.icon %}
|
||||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
<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 %}
|
{% else %}
|
||||||
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
|
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
<span class="md-nav__button md-logo">
|
<span class="md-nav__button md-logo">
|
||||||
{% if config.theme.logo.icon %}
|
{% if config.theme.logo.icon %}
|
||||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
<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 %}
|
{% else %}
|
||||||
<img src="{{ base_url }}/{{ config.theme.logo }}" width="24" height="24">
|
<img src="{{ base_url }}/{{ config.theme.logo }}" width="48" height="48">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{{ config.site_name }}
|
{{ config.site_name }}
|
||||||
|
@ -1,38 +1,38 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"
|
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"
|
||||||
viewBox="0 0 500 500" id="gitlab">
|
viewBox="0 0 500 500" id="gitlab">
|
||||||
<g transform="translate(156.197863, 1.160267)">
|
<g transform="translate(156.197863, 1.160267)">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M93.667,473.347L93.667,473.347l90.684-279.097H2.983L93.667,
|
d="M93.667,473.347L93.667,473.347l90.684-279.097H2.983L93.667,
|
||||||
473.347L93.667,473.347z" />
|
473.347L93.667,473.347z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(28.531199, 1.160800)" opacity="0.7">
|
<g transform="translate(28.531199, 1.160800)" opacity="0.7">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M221.333,473.345L130.649,194.25H3.557L221.333,473.345L221.333,
|
d="M221.333,473.345L130.649,194.25H3.557L221.333,473.345L221.333,
|
||||||
473.345z" />
|
473.345z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(0.088533, 0.255867)" opacity="0.5">
|
<g transform="translate(0.088533, 0.255867)" opacity="0.5">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M32,195.155L32,195.155L4.441,279.97c-2.513,7.735,0.24,16.21,6.821,
|
d="M32,195.155L32,195.155L4.441,279.97c-2.513,7.735,0.24,16.21,6.821,
|
||||||
20.99l238.514,173.29 L32,195.155L32,195.155z" />
|
20.99l238.514,173.29 L32,195.155L32,195.155z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(29.421866, 280.255593)">
|
<g transform="translate(29.421866, 280.255593)">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M2.667-84.844h127.092L75.14-252.942c-2.811-8.649-15.047-8.649-17.856,
|
d="M2.667-84.844h127.092L75.14-252.942c-2.811-8.649-15.047-8.649-17.856,
|
||||||
0L2.667-84.844 L2.667-84.844z" />
|
0L2.667-84.844 L2.667-84.844z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(247.197860, 1.160800)" opacity="0.7">
|
<g transform="translate(247.197860, 1.160800)" opacity="0.7">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M2.667,473.345L93.351,194.25h127.092L2.667,473.345L2.667,
|
d="M2.667,473.345L93.351,194.25h127.092L2.667,473.345L2.667,
|
||||||
473.345z" />
|
473.345z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(246.307061, 0.255867)" opacity="0.5">
|
<g transform="translate(246.307061, 0.255867)" opacity="0.5">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M221.334,195.155L221.334,195.155l27.559,84.815c2.514,7.735-0.24,
|
d="M221.334,195.155L221.334,195.155l27.559,84.815c2.514,7.735-0.24,
|
||||||
16.21-6.821,20.99 L3.557,474.25L221.334,195.155L221.334,195.155z" />
|
16.21-6.821,20.99 L3.557,474.25L221.334,195.155L221.334,195.155z" />
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(336.973725, 280.255593)">
|
<g transform="translate(336.973725, 280.255593)">
|
||||||
<path fill="currentColor"
|
<path fill="currentColor"
|
||||||
d="M130.667-84.844H3.575l54.618-168.098c2.811-8.649,15.047-8.649,
|
d="M130.667-84.844H3.575l54.618-168.098c2.811-8.649,15.047-8.649,
|
||||||
17.856,0L130.667-84.844 L130.667-84.844z" />
|
17.856,0L130.667-84.844 L130.667-84.844z" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -34,6 +34,8 @@
|
|||||||
class="md-header-nav__button md-logo">
|
class="md-header-nav__button md-logo">
|
||||||
{% if config.theme.logo.icon %}
|
{% if config.theme.logo.icon %}
|
||||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
<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 %}
|
{% else %}
|
||||||
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
||||||
width="24" height="24" />
|
width="24" height="24" />
|
||||||
|
@ -28,9 +28,11 @@
|
|||||||
<span class="md-nav__button md-logo">
|
<span class="md-nav__button md-logo">
|
||||||
{% if config.theme.logo.icon %}
|
{% if config.theme.logo.icon %}
|
||||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
<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 %}
|
{% else %}
|
||||||
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
||||||
width="24" height="24" />
|
width="48" height="48" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{{ config.site_name }}
|
{{ config.site_name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user