Renamed home component to logo

This commit is contained in:
squidfunk 2021-03-07 19:39:03 +01:00
parent 859173ef88
commit 47659c24d7
8 changed files with 10 additions and 10 deletions

View File

@ -217,7 +217,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.016d52fb.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.c9759047.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -3,7 +3,7 @@
-#}
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}">
<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 }}" data-md-component="home">
<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 }}" data-md-component="logo">
{% include "partials/logo.html" %}
</a>
<label class="md-header__button md-icon" for="__drawer">

View File

@ -10,7 +10,7 @@
{% endif %}
<nav class="{{ class }}" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<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 }}" data-md-component="home">
<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 }}" data-md-component="logo">
{% include "partials/logo.html" %}
</a>
{{ config.site_name }}

View File

@ -281,8 +281,8 @@ export function setupInstantLoading(
/* Components */
"[data-md-component=announce]",
"[data-md-component=header-topic]",
"[data-md-component=home], .md-logo", // compat
"[data-md-component=container]",
"[data-md-component=logo], .md-logo", // compat
"[data-md-component=skip]"
]) {
const source = getElement(selector)

View File

@ -33,7 +33,7 @@
title="{{ config.site_name | e }}"
class="md-header__button md-logo"
aria-label="{{ config.site_name }}"
data-md-component="home"
data-md-component="logo"
>
{% include "partials/logo.html" %}
</a>

View File

@ -43,7 +43,7 @@
title="{{ config.site_name | e }}"
class="md-nav__button md-logo"
aria-label="{{ config.site_name }}"
data-md-component="home"
data-md-component="logo"
>
{% include "partials/logo.html" %}
</a>