-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (40 loc) · 1.59 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
---
layout: default
title: Home
---
{% assign page_category = site.data.category_list[page.category] %}
{% include header-home.html %}
<div class="container-full">
<div class="container grid-xl">
<div class="columns negative-m-s">
<div class="column col-12 text-center">
<h6 class="text-secondary">Selecione uma categoria</h6>
</div>
{% for category in site.data.category_list %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<div class="column col-3 col-md-6 col-sm-12">
<a href="{{ site.baseurl }}/{{ category_name | slugify }}">
<div class="card card-link">
<div class="card-body text-center my-4">
<h5 class="text-bold">{{ category[1].name }}</h5>
<p class="m-0">
{% if category[1].show_articles_count == true %}
{% assign article_count = site.categories[category_name] | size %}
{% if article_count == 1 %}
{{ article_count }} artigo
{% else %}
{{ article_count }} artigos
{% endif %}
{% else %}
<br/>
{% endif %}
</p>
</div>
</div>
</a>
</div>
{% endfor %}
{% include more-help.html %}
</div>
</div>
</div>