Skip to content
Snippets Groups Projects
Commit 23de0baf authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Paginated layout should be aligned as well

parent 0ac0f74a
No related branches found
No related tags found
2 merge requests!17Develop,!3Develop
......@@ -2,32 +2,44 @@
layout: default
---
<article class="one_column">
{% for post in paginator.posts %}
<div class="post">
<a class="post-title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
<article>
<div class="content">
{{ post.content | truncate: 150 }}...
</div>
<span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span>
<div id="left-column">
</div>
{% endfor %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="previous">
Previous
</a>
{% endif %}
<span class="page_number ">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="next">Next</a>
{% endif %}
<div>
<header>
<h1>
ELIXIR.LU news
</h1>
</header>
{% for post in paginator.posts %}
<div class="post">
<a class="post-title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
<div class="content">
{{ post.content | truncate: 150 }}...
</div>
<span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span>
</div>
{% endfor %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="previous">
Previous
</a>
{% endif %}
<span class="page_number ">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="next">Next</a>
{% endif %}
</div>
</div>
</article>
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