From: Raphaƫl Gertz <git@rapsys.eu> Date: Tue, 12 Dec 2023 17:50:01 +0000 (+0100) Subject: Use new prev and next links X-Git-Tag: 0.2~2 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/2fc4573b1b0c4a95c8ddf374779d2de60782fb55 Use new prev and next links --- diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig index 04c49e4..464fd8a 100644 --- a/Resources/views/index.html.twig +++ b/Resources/views/index.html.twig @@ -29,14 +29,14 @@ </article> {% endfor %} </section> - {% if articles_prev is defined or articles_next is defined %} + {% if head.prev is defined or head.next is defined %} <footer> <nav class="pager"> - {% if articles_prev is defined %} - <a href="{{ articles_prev }}" rel="prev">< {% trans %}Previous articles{% endtrans %}</a> + {% if head.prev is defined %} + <a href="{{ head.prev }}" rel="prev">< {% trans %}Previous articles{% endtrans %}</a> {% endif %} - {% if articles_next is defined %} - <a href="{{ articles_next }}" rel="next">{% trans %}Next articles{% endtrans %} ></a> + {% if head.next is defined %} + <a href="{{ head.next }}" rel="next">{% trans %}Next articles{% endtrans %} ></a> {% endif %} </nav> </footer>