forked from cyevgeniy/jekyll-true-minimal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (24 loc) · 856 Bytes
/
index.html
File metadata and controls
26 lines (24 loc) · 856 Bytes
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
---
layout: default
---
{% for post in paginator.posts %}
<div class="post-item">
<div class="post-meta">
<span>{{ post.date | date: "%Y.%m.%d" }}</span>
{% if post.category %}<span class="post-category">{{ post.category }}</span>{% endif %}
</div>
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<p class="post-excerpt">{{ post.excerpt | strip_html | truncate: 180 }}</p>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.url }}{{ paginator.previous_page_path }}">← newer</a>
{% endif %}
<span>{{ paginator.page }} / {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ site.url }}{{ paginator.next_page_path }}">older →</a>
{% endif %}
</div>
{% endif %}