-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (54 loc) · 1.87 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
54
55
56
57
58
59
---
layout: page
title:
description: Portal pessoal do desenvolvedor brasileiro Rafael Henrique Moreira
tags: [Desenvolvedor,Web,Mobile,Java,JavaScript,Python,Django,Nodejs,Android]
group: home
---
{% for post in paginator.posts %}
<section class="post">
<h1 class="page-header"><a href="{{ post.url }}">{{ post.title }}</a></h1>
<article class="content">
{{ post.content }}
</article>
</section >
{% endfor %}
<nav class="pagination">
<ul class="pages">
{% assign base_paginator = site.paginate_path | remove:':num' %}
{% if paginator.previous_page %}
<li class="prev">
{% if paginator.previous_page == 1 %}
<a href="{{ site.baseurl }}"><i class="icon-arrow-left"></i> Anterior</a>
{% else %}
<a href="{{ site.baseurl }}{{ base_paginator }}{{ paginator.previous_page }}/"><i class="icon-arrow-left"></i> Anterior</a>
{% endif %}
</li>
{% else %}
<li class="prev disabled"><span><i class="icon-arrow-left"></i> Anterior</span></li>
{% endif %}
<li class="page">
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="{{ site.baseurl }}">1</a>
{% endif %}
</li>
{% for count in (2..paginator.total_pages) %}
<li class="page">
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<a href="{{ site.baseurl }}{{ base_paginator }}{{ count }}/">{{ count }}</a>
{% endif %}
</li>
{% endfor %}
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.baseurl }}{{ base_paginator }}{{ paginator.next_page }}/">Próximo <i class="icon-arrow-right"></i></a>
</li>
{% else %}
<li class="next disabled"><span>Próximo <i class="icon-arrow-right"></i></span></li>
{% endif %}
</ul>
</nav>