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

index b1a6ce4c6a8b2c6fe25a52019830e48bceeac802..dae4b708c34f2eb8f4205162e71b4a990e228f70 100644 (file)
                                </article>
                        {% endfor %}
                </section>
-               {% if keywords_prev is defined or keywords_next is defined %}
+               {% if head.prev is defined or head.next is defined %}
                        <footer>
                                <nav class="pager">
-                                       {% if keywords_prev is defined %}
-                                               <a href="{{ keywords_prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
+                                       {% if head.prev is defined %}
+                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
                                        {% endif %}
-                                       {% if keywords_next is defined %}
-                                               <a href="{{ keywords_next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
+                                       {% if head.next is defined %}
+                                               <a href="{{ head.next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
                                        {% endif %}
                                </nav>
                        </footer>