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> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -3,7 +3,7 @@
-#} -#}
<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="{{ 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" %} {% include "partials/logo.html" %}
</a> </a>
<label class="md-header__button md-icon" for="__drawer"> <label class="md-header__button md-icon" for="__drawer">

View File

@ -10,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="{{ 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" %} {% include "partials/logo.html" %}
</a> </a>
{{ config.site_name }} {{ config.site_name }}

View File

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

View File

@ -33,7 +33,7 @@
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 }}"
data-md-component="home" data-md-component="logo"
> >
{% include "partials/logo.html" %} {% include "partials/logo.html" %}
</a> </a>

View File

@ -43,7 +43,7 @@
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 }}"
data-md-component="home" data-md-component="logo"
> >
{% include "partials/logo.html" %} {% include "partials/logo.html" %}
</a> </a>