generated from medeirosinacio/jekyll-bootstrap-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (115 loc) · 4.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
layout: default
title:
---
<!-- Page Content-->
<div class="row justify-content-center py-2 py-md-4">
<section class="col-md-10 col-lg-8">
<h2 style="font-size: 0">Artigos</h2>
{% for post in paginator.posts %}
<article class="pb-2 mb-5 border-bottom border-secondary border-opacity-25">
<h2 class="post-title fw-bold color-hover">
<a class="text-reset text-decoration-none" href="{{ site.srcurl }}{{ post.url }}"
title="Clique para Ler">
{{ post.title }}
</a>
</h2>
<p class="post-meta text-muted">
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" }}
de
{% case m %}
{% when '1' %}Janeiro
{% when '2' %}Fevereiro
{% when '3' %}Março
{% when '4' %}Abril
{% when '5' %}Maio
{% when '6' %}Junho
{% when '7' %}Julho
{% when '8' %}Agosto
{% when '9' %}Setembro
{% when '10' %}Outubro
{% when '11' %}Novembro
{% when '12' %}Dezembro
{% endcase %}
de
{{ post.date | date: "%Y" }}
·
{% assign wordCount = post.content | number_of_words | divided_by: 50 %}
{% if wordCount < 1 %}
{{ '1 minuto de leitura' }}
{% else %}
{{ wordCount }} minutos de leitura
{% endif %}
</p>
{% if post.image %}
<figure class="post-image mb-3">
<a class="card-img-top d-block rounded-3"
style="background-image: url('{{ site.srcurl }}{{ post.image }}')"
href="{{ site.srcurl }}{{ post.url }}" title="{{ post.title }}"></a>
</figure>
{% endif %}
<div class="post-content pb-2">
{{ post.description }}
</div>
<a class="text-reset text-decoration-none text-white fw-semibold continue-reading"
href="{{ site.srcurl }}{{ post.url }}"
title="Clique para Ler">
Continuar lendo <i class="bi bi-arrow-right fw-bold"></i>
</a>
</article>
{% endfor %}
<!-- Pagination -->
<nav aria-label="Page navigation" class="d-flex justify-content-center mt-5 nav-pagination">
<h2 style="font-size: 0">Paginação</h2>
<ul class="pagination justify-content-center">
{% if paginator.previous_page %}
<li class="page-item">
<a class="page-link" href="{{ site.srcurl }}{{ paginator.previous_page_path }}" tabindex="-1"
disabled>Anterior</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1" disabled onclick="return false;">
Anterior
</a>
</li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="page-item active">
<a class="page-link" href="#" tabindex="-1" disabled>
{{ page }}
</a>
</li>
{% elsif page == 1 %}
<li class="page-item">
<a class="page-link" href="{{site.srcurl}}/">1</a>
</li>
{% else %}
<li class="page-item">
<a class="page-link"
href="{{ site.srcurl }}{{ site.paginate_path | relative_url | replace: ':num', page }}">
{{ page }}
</a>
</li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li class="page-item">
<a class="page-link" href="{{ site.srcurl }}{{ paginator.next_page_path }}">Próxima</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1" disabled onclick="return false;">
Próxima
</a>
</li>
{% endif %}
</ul>
</nav>
</section>
<!-- <div class="col-md-3 d-none d-md-block">-->
<!-- {% include aside.html %}-->
<!-- </div>-->
</div>