Added link to home for logo in mobile navigation

This commit is contained in:
squidfunk 2018-07-29 16:19:04 +02:00
parent 9205a7acb7
commit 7f3c72bff2
2 changed files with 5 additions and 4 deletions

View File

@ -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 %}

View File

@ -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>