Add rel and rel HTML attributes to the footer links which point to the previous and next pages.

This commit is contained in:
= 2017-01-30 23:45:42 +01:00
parent eef98b316b
commit 2f60d2c29d
2 changed files with 4 additions and 2 deletions

View File

@ -97,6 +97,8 @@ Changelog
master
------
* Adds ``rel`` and ``rel`` HTML attributes to the footer links which point
to the previous and next pages.
* Adds the ``comments`` block after the ``body`` block in the template
v0.1.10-alpha

View File

@ -2,10 +2,10 @@
{% if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
{% if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n">{{ _('Next') }} <span class="fa fa-arrow-circle-right"></span></a>
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next" rev="prev">{{ _('Next') }} <span class="fa fa-arrow-circle-right"></span></a>
{% endif %}
{% if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p"><span class="fa fa-arrow-circle-left"></span> {{ _('Previous') }}</a>
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev" rev="next"><span class="fa fa-arrow-circle-left"></span> {{ _('Previous') }}</a>
{% endif %}
</div>
{% endif %}