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

Paginated layout

parent a8c2a433
No related branches found
No related tags found
2 merge requests!17Develop,!3Develop
---
layout: default
---
<article class="one_column">
<div>
{% for post in paginator.posts %}
<h3>
<a href="{{ post.url }}">{{ post.title }}</a>
</h3>
<p class="author">
<span class="date">{{ post.date }}</span>
</p>
<div class="content">
{{ post.content }}
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">
Previous
</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
</article>
......@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "elixir-theme"
spec.version = "0.1.23"
spec.version = "0.1.24"
spec.authors = ["jacek.lebioda"]
spec.email = ["jacek.lebioda@uni.lu"]
......
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