-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (31 loc) · 964 Bytes
/
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
---
layout: default
title: Blog de Fer Perales
pagination:
enabled: true
---
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<p class="author">
<span class="date">{{ post.date | date: '%B %d, %Y' }}</span>
</p>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="content">
{{ post.excerpt or post.content | strip_html | truncatewords: 55 }}
<a href="{{ post.url }}"> leer más</a>
</div>
<hr />
{% endfor %}
<!-- Pagination links -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.next_page %}
<a class='prev-link' href="{{ paginator.next_page_path | relative_url }}">« Posts anteriores</a>
{% endif %}
{% if paginator.previous_page %}
<a class='next-link' href="{{ paginator.previous_page_path | relative_url }}">Posts recientes »</a>
{% endif %}
</div>
{% endif %}
<hr class='footer-separator'/>