forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
31 lines (28 loc) · 1.17 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
---
layout: default
published: true
---
<div class="posts">
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<div class="entry">
{{ post.excerpt }}
</div>
<a class="button" style="font-size: 12px;" href="{{ site.baseurl }}{{ post.url }}"><span class="fas fa-hand-point-right"></span> Leer más</a>
</article>
{% endfor %}
</div>
<!-- Pagination links -->
<div style="text-align: center; margin-top: 30px; margin-bottom: 25px;">
{% if paginator.previous_page %}
<a class="button" style="font-size: 12px;" title="Prev page" href="{{ paginator.previous_page_path }}"><span class="fas fa-chevron-circle-left"></span> Anteior</a>
{% endif %}
<span class="page_number ">
Página {{ paginator.page }} de {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a class="button" style="font-size: 12px;" title="Next page" href="{{ paginator.next_page_path }}"><span class="fas fa-chevron-circle-right"></span> Siguiente</a>
{% endif %}
</div>