-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (55 loc) · 1.99 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
---
layout: home
---
<div class="container">
<div class="row mb-3">
<div class="col-sm text-center">
<h2>Últimas Aulas</h2>
</div>
</div>
<div class="row">
{% for i in (1..3)%}
{% assign index = site.aulas.size | minus: i %}
{% assign aula = site.aulas[index] %}
<div class="col-sm">
<div class="card">
<img src="https://img.youtube.com/vi/{{ aula.video }}/0.jpg" class="card-img-top">
<div class="card-body">
<span class="card-title">{{ aula.title}}</span>
<p>{{ aula.description }}</p>
<a class="card-link" href="{{site.baseurl}}{{ aula.url }}">Ver aula</a>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row mt-5 mb-3">
<div class="col-sm text-center">
<h2>Últimos artigos</h2>
</div>
</div>
<div class="row mb-3">
{% for post in site.posts limit:5 %}
<div class="col-sm">
<div class="card mb-3">
<div class="no-gutters row">
<div class="col-md-4">
{% if post.image %}
<img src="{{site.baseurl}}/assets/images/{{post.image}}" class="card-img">
{% else %}
<img class="{{site.baseurl}}/assets/images/default-card.jpg" class="card-img">
{% endif%}
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">{{ post.title }}</h5>
<p class="card-text">{{post.excerpt }}</p>
<a class="card-link" href="{{site.baseurl}}{{ post.url }}">Ler artigo</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>