-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (50 loc) · 1.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
layout: page
title: News
---
{% for post in paginator.posts %}
<article class="home">
<span class="post-date">
{% assign d = post.date | date: "%m" | plus:'0' %}
{{ post.date | date: "%d" }}.
{% include ee_date.html %}
{{ post.date | date: "%Y" }}
</span>
<h2><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }} ›</a></h2>
<div class="article_body">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.content | strip_html | truncate: page.summary_length }}<br />
{% endif %}
</div>
</article>
{% endfor %}
<hr/>
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ '/news/' | prepend: site.baseurl }}">←<span class="hidden-xs"> Uuemad</span></a>
{% else %}
<a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | prepend: '/' | prepend: site.baseurl }}">←<span class="hidden-xs"> Uuemad</span></a>
{% endif %}
</li>
{% else %}
<li class="previous disabled">
<a>←<span class="hidden-xs"> Newer</span></a>
</li>
{% endif %}
<li>
<span class="page_number"><span class="hidden-xs">Page: </span>{{ paginator.page }}/{{ paginator.total_pages }}</span>
</li>
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.paginate_path | replace: ':num', paginator.next_page | prepend: '/' | prepend: site.baseurl }}"><span class="hidden-xs">Vanemad </span>→</a>
</li>
{% else %}
<li class="next disabled">
<a><span class="hidden-xs">Older </span>→</a>
</li>
{% endif %}
</ul>