1
0
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:
Christian Oliff 2019-08-24 00:32:44 +09:00 committed by Martin Donath
parent 422406bed3
commit 4f41b9aa52
2 changed files with 5 additions and 8 deletions

View File

@ -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 %}

View File

@ -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>