Merge pull request #155 from nnadeau/patch-1

Striptags from neighbors article title
This commit is contained in:
Alexandre Vicenzi 2018-10-06 15:39:05 +02:00 committed by GitHub
commit 05ef87d545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,12 @@
{% if 'neighbors' in PLUGINS %} {% if 'neighbors' in PLUGINS %}
<div class="neighbors"> <div class="neighbors">
{% if article.prev_article %} {% if article.prev_article %}
<a class="btn float-left" href="{{ SITEURL }}/{{ article.prev_article.url }}" title="{{ article.prev_article.title }}"> <a class="btn float-left" href="{{ SITEURL }}/{{ article.prev_article.url }}" title="{{ article.prev_article.title|striptags }}">
<i class="fa fa-angle-left"></i> {{ _('Previous Post') }} <i class="fa fa-angle-left"></i> {{ _('Previous Post') }}
</a> </a>
{% endif %} {% endif %}
{% if article.next_article %} {% if article.next_article %}
<a class="btn float-right" href="{{ SITEURL }}/{{ article.next_article.url }}" title="{{ article.next_article.title }}"> <a class="btn float-right" href="{{ SITEURL }}/{{ article.next_article.url }}" title="{{ article.next_article.title|striptags }}">
{{ _('Next Post') }} <i class="fa fa-angle-right"></i> {{ _('Next Post') }} <i class="fa fa-angle-right"></i>
</a> </a>
{% endif %} {% endif %}