mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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 %}
|
||||
<li class="md-tabs__item">
|
||||
{% if not page.ancestors | length and nav | selectattr("url", page.url) %}
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
|
||||
class="md-tabs__link md-tabs__link--active">
|
||||
<a href="{{ nav_item.url | url }}" class="md-tabs__link md-tabs__link--active">
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
|
||||
class="md-tabs__link">
|
||||
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
@ -50,12 +48,12 @@
|
||||
<li class="md-tabs__item">
|
||||
{% if nav_item.active %}
|
||||
<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 }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ (nav_item.children | first).url | url }}"
|
||||
title="{{ title }}" class="md-tabs__link">
|
||||
class="md-tabs__link">
|
||||
{{ title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
@ -22,8 +22,7 @@
|
||||
|
||||
<!-- Table of contents item -->
|
||||
<li class="md-nav__item">
|
||||
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}"
|
||||
class="md-nav__link">
|
||||
<a href="{{ toc_item.url }}" class="md-nav__link">
|
||||
{{ toc_item.title }}
|
||||
</a>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user