Switch talk pager items
This commit is contained in:
parent
c873cf2321
commit
1a241e8b49
17
source/_partials/talk/pager.twig
Normal file
17
source/_partials/talk/pager.twig
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div class="talk-pager is-flex">
|
||||
{% if page.previous_talk %}
|
||||
<div class="is-half">
|
||||
<a href="{{ page.previous_talk.url }}">
|
||||
« {{ page.previous_talk.title }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.next_talk %}
|
||||
<div class="is-half text-right">
|
||||
<a href="{{ page.next_talk.url }}">
|
||||
{{ page.next_talk.title }} »
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
|
@ -13,22 +13,5 @@
|
|||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<div class="talk-pager is-flex">
|
||||
{% if page.next_talk %}
|
||||
<div class="is-half">
|
||||
<a href="{{ page.next_talk.url }}">
|
||||
« {{ page.next_talk.title }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.previous_talk %}
|
||||
<div class="is-half text-right">
|
||||
<a href="{{ page.previous_talk.url }}" class="is-half text-right">
|
||||
{{ page.previous_talk.title }} »
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include 'talk/pager' %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue