forked from hmfaysal/Notepad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
99 lines (91 loc) · 4.27 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
---
layout: home
title: JE.B
description: "Blog pessoal de João Eduardo F. Bertacchi, Engenheiro de Computação e empreendedor."
headline: A caminhada de um computeiro pelo mundo do empreendedorismo
tags: [Joao, João, Eduardo, Ferreira, Bertacchi, computação, computacao, engineering, engenharia, blog, empreendedorismo]
---
{% if site.paginate %}
{% for post in paginator.posts %}
<article class="summer-index-post post row">
<div class="small-12 medium-3 large-2 columns datetime">
<span class="summer-post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}">
<span class="day">
{{ post.date | date: "%d" }}
</span>
<span class="month-year">
{% assign m = post.date | date: "%-m" | minus: 1 %}
{{ site.data.pt-BR.months[m] }}
{{ post.date | date: "%Y" }}
</span>
</time>
</span>
</div>
<div class="small-12 medium-9 large-10 columns">
<header class="summer-post-header">
<h3 class="summer-post-title">
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
</a>
</h3>
</header>
<section class="summer-post-excerpt">
<p>{{ post.content | strip_html | truncatewords:40 }}</p>
</section>
<div class="summer-index-post-tags">
{% for tag in post.categories %}<a href="{{ site.url }}/categories/index.html#{{ post.categories | cgi_encode }}" title="Other posts from the {{ tag | capitalize }} category">{{ tag | capitalize }}</a>{% unless forloop.last %} {% endunless %}{% endfor %}
</div>
</div>
</article>
{% endfor %}
<nav class="pagination" role="navigation">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="{{ site.url }}"><i class="fa fa-chevron-left"></i> Recentes</a>
{% else %}
<a class="newer-posts" href="{{ site.url }}/page{{ paginator.previous_page }}"><i class="fa fa-chevron-left"></i> Newer</a>
{% endif %}
{% else %}
<span class="newer-posts faded"><i class="fa fa-chevron-left"></i> Recentes</span>
{% endif %}
<span class="page-number">Página {{ paginator.page }} de {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="older-posts" href="{{ site.url }}/page{{ paginator.next_page }}/">Antigos <i class="fa fa-chevron-right"></i></a>
{% else %}
<span class="older-posts faded">Antigos <i class="fa fa-chevron-right"></i></span>
{% endif %}
</nav>
{% else %}
{% for post in site.posts %}
<article class="summer-index-post post row">
<div class="small-12 medium-3 large-2 columns datetime">
<span class="summer-post-meta">
<time datetime="{{ post.date | date_to_xmlschema }}">
<span class="day">
{{ post.date | date: "%d" }}
</span>
<span class="month-year">
{{ post.date | date: "%B %Y" }}
</span>
</time>
</span>
</div>
<div class="small-12 medium-9 large-10 columns">
<header class="summer-post-header">
<h3 class="summer-post-title">
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
</a>
</h3>
</header>
<section class="summer-post-excerpt">
<p>{{ post.content | strip_html | truncatewords:100 }}</p>
</section>
<div class="summer-index-post-tags">
{% for tag in post.categories %}<a href="{{ site.url }}/categories/index.html#{{ post.categories | cgi_encode }}" title="Other posts from the {{ tag | capitalize }} category">{{ tag | capitalize }}</a>{% unless forloop.last %} {% endunless %}{% endfor %}
</div>
</div>
</article>
{% endfor %}
{% endif %}