-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
19 lines (17 loc) · 900 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
layout: default
---
{% assign post_count = 0 %}{% for post in site.categories.postitused %}{% assign post_count = post_count | plus: 1 %}{% endfor %}{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %}{% assign next_offset = paginator.page | times: paginator.per_page %}{% for post in site.categories.postitused limit: paginator.per_page offset: offset %}
{% include postbox.html %}
{% endfor %}
{% if post_count > paginator.per_page %}
<div class="sub push">
{% if offset >= paginator.per_page %}
<a href="{{ paginator.previous_page_path | remove: 'index.html' }}" class="pull-left">« Värskemad postitused</a>
{% endif %}
{% if next_offset < post_count %}
<a href="{{ paginator.next_page_path }}" class="pull-right">Vanemad postitused »</a>
{% endif %}
</div>
{% endif %}
{% if site.local != 1 %}{% include disqus_count.html %}{% endif %}