mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added link to home for logo in mobile navigation
This commit is contained in:
parent
9205a7acb7
commit
7f3c72bff2
@ -1,6 +1,6 @@
|
|||||||
<nav class="md-nav md-nav--primary" data-md-level="0">
|
<nav class="md-nav md-nav--primary" data-md-level="0">
|
||||||
<label class="md-nav__title md-nav__title--site" for="__drawer">
|
<label class="md-nav__title md-nav__title--site" for="__drawer">
|
||||||
<span class="md-nav__button md-logo">
|
<a href="{{ config.site_url | default(nav.homepage.url, true) }}" title="{{ config.site_name }}" 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") %}
|
{% elif config.theme.logo.startswith("http") %}
|
||||||
@ -8,7 +8,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ base_url }}/{{ config.theme.logo }}" width="48" height="48">
|
<img src="{{ base_url }}/{{ config.theme.logo }}" width="48" height="48">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</a>
|
||||||
{{ config.site_name }}
|
{{ config.site_name }}
|
||||||
</label>
|
</label>
|
||||||
{% if config.repo_url %}
|
{% if config.repo_url %}
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
|
|
||||||
<!-- Site title -->
|
<!-- Site title -->
|
||||||
<label class="md-nav__title md-nav__title--site" for="__drawer">
|
<label class="md-nav__title md-nav__title--site" for="__drawer">
|
||||||
<span class="md-nav__button md-logo">
|
<a href="{{ config.site_url | default(nav.homepage.url, true) }}"
|
||||||
|
title="{{ config.site_name }}" 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") %}
|
{% elif config.theme.logo.startswith("http") %}
|
||||||
@ -34,7 +35,7 @@
|
|||||||
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
<img src="{{ base_url }}/{{ config.theme.logo }}"
|
||||||
width="48" height="48" />
|
width="48" height="48" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</a>
|
||||||
{{ config.site_name }}
|
{{ config.site_name }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user