Removed unnecessary title attributes in links

This commit is contained in:
squidfunk 2020-10-04 14:18:10 +02:00
parent de17367859
commit 52787c6a9c
4 changed files with 5 additions and 12 deletions

View File

@ -7,7 +7,7 @@
<div class="md-footer-nav"> <div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid" aria-label="{{ lang.t('footer.title') }}"> <nav class="md-footer-nav__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
{% if page.previous_page %} {% if page.previous_page %}
<a href="{{ page.previous_page.url | url }}" title="{{ page.previous_page.title | striptags }}" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev"> <a href="{{ page.previous_page.url | url }}" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<div class="md-footer-nav__button md-icon"> <div class="md-footer-nav__button md-icon">
{% include ".icons/material/arrow-left.svg" %} {% include ".icons/material/arrow-left.svg" %}
</div> </div>
@ -22,7 +22,7 @@
</a> </a>
{% endif %} {% endif %}
{% if page.next_page %} {% if page.next_page %}
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" class="md-footer-nav__link md-footer-nav__link--next" rel="next"> <a href="{{ page.next_page.url | url }}" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
<div class="md-footer-nav__title"> <div class="md-footer-nav__title">
<div class="md-ellipsis"> <div class="md-ellipsis">
<span class="md-footer-nav__direction"> <span class="md-footer-nav__direction">

View File

@ -44,7 +44,7 @@
<span class="md-nav__icon md-icon"></span> <span class="md-nav__icon md-icon"></span>
</label> </label>
{% endif %} {% endif %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link md-nav__link--active"> <a href="{{ nav_item.url | url }}" class="md-nav__link md-nav__link--active">
{{ nav_item.title }} {{ nav_item.title }}
</a> </a>
{% if toc | first is defined %} {% if toc | first is defined %}
@ -53,7 +53,7 @@
</li> </li>
{% else %} {% else %}
<li class="{{ class }}"> <li class="{{ class }}">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link"> <a href="{{ nav_item.url | url }}" class="md-nav__link">
{{ nav_item.title }} {{ nav_item.title }}
</a> </a>
</li> </li>

View File

@ -37,7 +37,6 @@
{% if page.previous_page %} {% if page.previous_page %}
<a <a
href="{{ page.previous_page.url | url }}" href="{{ page.previous_page.url | url }}"
title="{{ page.previous_page.title | striptags }}"
class="md-footer-nav__link md-footer-nav__link--prev" class="md-footer-nav__link md-footer-nav__link--prev"
rel="prev" rel="prev"
> >
@ -59,7 +58,6 @@
{% if page.next_page %} {% if page.next_page %}
<a <a
href="{{ page.next_page.url | url }}" href="{{ page.next_page.url | url }}"
title="{{ page.next_page.title | striptags }}"
class="md-footer-nav__link md-footer-nav__link--next" class="md-footer-nav__link md-footer-nav__link--next"
rel="next" rel="next"
> >

View File

@ -102,7 +102,6 @@
{% endif %} {% endif %}
<a <a
href="{{ nav_item.url | url }}" href="{{ nav_item.url | url }}"
title="{{ nav_item.title | striptags }}"
class="md-nav__link md-nav__link--active" class="md-nav__link md-nav__link--active"
> >
{{ nav_item.title }} {{ nav_item.title }}
@ -117,11 +116,7 @@
<!-- Main navigation item --> <!-- Main navigation item -->
{% else %} {% else %}
<li class="{{ class }}"> <li class="{{ class }}">
<a <a href="{{ nav_item.url | url }}" class="md-nav__link">
href="{{ nav_item.url | url }}"
title="{{ nav_item.title | striptags }}"
class="md-nav__link"
>
{{ nav_item.title }} {{ nav_item.title }}
</a> </a>
</li> </li>