mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed problems with mike when logo points to site_url
This commit is contained in:
parent
7c297046d1
commit
5037094b12
@ -1,13 +1,9 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
{% set site_url = config.site_url | d(nav.homepage.url, true) | url %}
|
|
||||||
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
|
|
||||||
{% set site_url = site_url ~ "/index.html" %}
|
|
||||||
{% endif %}
|
|
||||||
<header class="md-header" data-md-component="header">
|
<header class="md-header" data-md-component="header">
|
||||||
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}">
|
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}">
|
||||||
<a href="{{ site_url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}">
|
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}">
|
||||||
{% include "partials/logo.html" %}
|
{% include "partials/logo.html" %}
|
||||||
</a>
|
</a>
|
||||||
<label class="md-header__button md-icon" for="__drawer">
|
<label class="md-header__button md-icon" for="__drawer">
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
{% set site_url = config.site_url | d(nav.homepage.url, true) | url %}
|
|
||||||
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
|
|
||||||
{% set site_url = site_url ~ "/index.html" %}
|
|
||||||
{% endif %}
|
|
||||||
{% set class = "md-nav md-nav--primary" %}
|
{% set class = "md-nav md-nav--primary" %}
|
||||||
{% if "navigation.tabs" in features %}
|
{% if "navigation.tabs" in features %}
|
||||||
{% set class = class ~ " md-nav--lifted" %}
|
{% set class = class ~ " md-nav--lifted" %}
|
||||||
@ -14,7 +10,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<nav class="{{ class }}" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
|
<nav class="{{ class }}" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
|
||||||
<label class="md-nav__title" for="__drawer">
|
<label class="md-nav__title" for="__drawer">
|
||||||
<a href="{{ site_url }}" title="{{ config.site_name | e }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
|
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
|
||||||
{% include "partials/logo.html" %}
|
{% include "partials/logo.html" %}
|
||||||
</a>
|
</a>
|
||||||
{{ config.site_name }}
|
{{ config.site_name }}
|
||||||
|
@ -20,12 +20,6 @@
|
|||||||
IN THE SOFTWARE.
|
IN THE SOFTWARE.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Mitigate bug: https://github.com/mkdocs/mkdocs/issues/2191 -->
|
|
||||||
{% set site_url = config.site_url | d(nav.homepage.url, true) | url %}
|
|
||||||
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
|
|
||||||
{% set site_url = site_url ~ "/index.html" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<header class="md-header" data-md-component="header">
|
<header class="md-header" data-md-component="header">
|
||||||
<nav
|
<nav
|
||||||
@ -35,7 +29,7 @@
|
|||||||
|
|
||||||
<!-- Link to home -->
|
<!-- Link to home -->
|
||||||
<a
|
<a
|
||||||
href="{{ site_url }}"
|
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
|
||||||
title="{{ config.site_name | e }}"
|
title="{{ config.site_name | e }}"
|
||||||
class="md-header__button md-logo"
|
class="md-header__button md-logo"
|
||||||
aria-label="{{ config.site_name }}"
|
aria-label="{{ config.site_name }}"
|
||||||
|
@ -20,12 +20,6 @@
|
|||||||
IN THE SOFTWARE.
|
IN THE SOFTWARE.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Mitigate bug: https://github.com/mkdocs/mkdocs/issues/2191 -->
|
|
||||||
{% set site_url = config.site_url | d(nav.homepage.url, true) | url %}
|
|
||||||
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
|
|
||||||
{% set site_url = site_url ~ "/index.html" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Determine class according to configuration -->
|
<!-- Determine class according to configuration -->
|
||||||
{% set class = "md-nav md-nav--primary" %}
|
{% set class = "md-nav md-nav--primary" %}
|
||||||
{% if "navigation.tabs" in features %}
|
{% if "navigation.tabs" in features %}
|
||||||
@ -45,7 +39,7 @@
|
|||||||
<!-- Site title -->
|
<!-- Site title -->
|
||||||
<label class="md-nav__title" for="__drawer">
|
<label class="md-nav__title" for="__drawer">
|
||||||
<a
|
<a
|
||||||
href="{{ site_url }}"
|
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
|
||||||
title="{{ config.site_name | e }}"
|
title="{{ config.site_name | e }}"
|
||||||
class="md-nav__button md-logo"
|
class="md-nav__button md-logo"
|
||||||
aria-label="{{ config.site_name }}"
|
aria-label="{{ config.site_name }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user