Skip to content
Snippets Groups Projects
Commit 29c036b6 authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

arrows on bottom

parent 8279a518
No related branches found
No related tags found
1 merge request!57Resolve "News page: Possibly more than 5 + Arrows on bottom of page"
......@@ -94,6 +94,56 @@ title: HIFIS
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="page-navigation grid-container">
<div class="pagination-container grid-item">
{% if paginator.previous_page %}
<span>
<a href="{{ paginator.previous_page_path | relative_url }}">
<i class="fas fa-backward"></i>
</a>
</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span> {{ page }} </span>
{% elsif page == 1 %}
<span>
<a href="{{ 'news/' | relative_url }}"> {{ page }} </a>
</span>
{% else %}
<span>
<a href="{{ site.paginate_path
| relative_url
| replace: ':num', page }}">
{{ page }}
</a>
</span>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<span>
<a href="{{ paginator.next_page_path | relative_url }}">
<i class="fas fa-forward"></i>
</a>
</span>
{% endif %}
</div>
<div class="rss-posts-container grid-item">
<a class="rss-posts-button" href="{{ '/feed/news.xml' | relative_url }}"
title="subscribe to feed"
type="application/atom+xml"
download>
<i class="fas fa-rss"></i>
</a>
</div>
</nav>
{% endif %}
</section>
</main>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment