-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategoriesBK.html
44 lines (44 loc) · 2.25 KB
/
categoriesBK.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
---
layout: category_list
title: Explore Categories
add_to_menu: false
description: "Meta description for Support page"
keywords: "responsive,jekyll,minimal template"
---
<div class="topics-area bg-color1">
<div class="topics-wrapper section-spacing bminus-30">
<div class="container">
<div class="col">
<!--ELENCO DI TUTTE LE CATEGORIE-->
{% for category in site.data.category.category %}
{% capture category_name %}{{ category.key}}{% endcapture %}
{% capture category_label %}{{ category.label}}{% endcapture %}
{% capture category_draft %}{{ category.draft}}{% endcapture %}
{% capture category_type %}{{ category.type}}{% endcapture %}
{% if category_draft == "false" and category_type == '(categoria)' %}
<div class="row">
<article class="topics-service bg-color3 wow fadeIn" data-wow-duration="3s">
<header class="topics-title">
{% assign all_posts = site.categories[category_name] %}
{% assign my_category_url = "/categories/" | append: category.url %}
<a href="{{ my_category_url | relative_url }}"><h4 class="heading-4 text-capitalize">{{ category_label }} ({{all_posts.size}})</h4></a>
</header>
<ul class="topics-list list-inline">
{% assign normal_posts = site.categories[category_name] %}
{% for doc_post in normal_posts %}
{% capture post_draft %}{{ doc_post.draft}}{% endcapture %}
{% if post_draft == "false" %}
<li><a href="{{ doc_post.url | relative_url }}">{{ doc_post.title }} </a></li>
{% endif %}
{% endfor %}
</ul>
</article>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<!-- End Topics Area -->