]> Raphaël G. Git Repositories - blogbundle/commitdiff
Use prev and next links
authorRaphaël Gertz <git@rapsys.eu>
Tue, 12 Dec 2023 17:35:40 +0000 (18:35 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 12 Dec 2023 17:35:40 +0000 (18:35 +0100)
Resources/views/article/index.html.twig

index 3f0abf6ba69f939022fd6cffb17768e11a25ea84..512e0fa26f8a5803ed33cbfd5b8fd2188ebc11c9 100644 (file)
                                </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">&lt; {% trans %}Previous articles{% endtrans %}</a>
+                                       {% if head.prev is defined %}
+                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
                                        {% endif %}
-                                       {% if articles_next is defined %}
-                                               <a href="{{ articles_next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
+                                       {% if head.next is defined %}
+                                               <a href="{{ head.next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
                                        {% endif %}
                                </nav>
                        </footer>