mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-18 08:54:46 +01:00
Removed unneeded title attributes from text links in nav and sidebar (#1224)
This commit is contained in:
parent
422406bed3
commit
4f41b9aa52
@ -24,13 +24,11 @@
|
|||||||
{% if nav_item.is_homepage %}
|
{% if nav_item.is_homepage %}
|
||||||
<li class="md-tabs__item">
|
<li class="md-tabs__item">
|
||||||
{% if not page.ancestors | length and nav | selectattr("url", page.url) %}
|
{% if not page.ancestors | length and nav | selectattr("url", page.url) %}
|
||||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
|
<a href="{{ nav_item.url | url }}" class="md-tabs__link md-tabs__link--active">
|
||||||
class="md-tabs__link md-tabs__link--active">
|
|
||||||
{{ nav_item.title }}
|
{{ nav_item.title }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
|
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
|
||||||
class="md-tabs__link">
|
|
||||||
{{ nav_item.title }}
|
{{ nav_item.title }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -50,12 +48,12 @@
|
|||||||
<li class="md-tabs__item">
|
<li class="md-tabs__item">
|
||||||
{% if nav_item.active %}
|
{% if nav_item.active %}
|
||||||
<a href="{{ (nav_item.children | first).url | url }}"
|
<a href="{{ (nav_item.children | first).url | url }}"
|
||||||
title="{{ title }}" class="md-tabs__link md-tabs__link--active">
|
class="md-tabs__link md-tabs__link--active">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ (nav_item.children | first).url | url }}"
|
<a href="{{ (nav_item.children | first).url | url }}"
|
||||||
title="{{ title }}" class="md-tabs__link">
|
class="md-tabs__link">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
|
|
||||||
<!-- Table of contents item -->
|
<!-- Table of contents item -->
|
||||||
<li class="md-nav__item">
|
<li class="md-nav__item">
|
||||||
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}"
|
<a href="{{ toc_item.url }}" class="md-nav__link">
|
||||||
class="md-nav__link">
|
|
||||||
{{ toc_item.title }}
|
{{ toc_item.title }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user