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

View File

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