Removed HTML tags from nav item titles (#1073)

This commit is contained in:
Lars 2019-04-16 11:29:16 +02:00 committed by Martin Donath
parent 2df4a2c99d
commit bd8eaf4a09
6 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -66,7 +66,7 @@
{% endif %}
{% endblock %}
{% block libs %}
<script src="{{ 'assets/javascripts/modernizr.1f0bcf2b.js' | url }}"></script>
<script src="{{ 'assets/javascripts/modernizr.01ccdecf.js' | url }}"></script>
{% endblock %}
{% block fonts %}
{% if font != false %}
@ -190,7 +190,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/application.3ca04de7.js' | url }}"></script>
<script src="{{ 'assets/javascripts/application.a8f24370.js' | url }}"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -38,7 +38,7 @@
{{ nav_item.title }}
</label>
{% endif %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-nav__link md-nav__link--active">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link md-nav__link--active">
{{ nav_item.title }}
</a>
{% if toc_ | first is defined %}
@ -47,7 +47,7 @@
</li>
{% else %}
<li class="{{ class }}">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-nav__link">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link">
{{ nav_item.title }}
</a>
</li>

View File

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