-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathc_knowledgebase.html
33 lines (30 loc) · 985 Bytes
/
c_knowledgebase.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
{% comment %}
KNOWLEDGEBASE (grid) -----------------------------------------
Data source: _data/_en/knowledgebase/{section}.yml
Parameters:
- title (string, optional)
- data (array)
- related (array, optiona): handy links related to the particular section
Info:
Knowledgebase grid. For more information about individual items see "c_knowledgebase-item.html"
{% endcomment %}
{% if include.title %}
{%- include c_box-header.html title=include.title anchor=true -%}
{% endif %}
<div class="box is-box-info p-6-custom-responsive has-border">
{% if include.data.size > 0 %}
<div class="fixed-grid has-1-cols has-2-cols-tablet">
<div class="grid is-gap-6">
{% for item in include.data %}
{% include c_knowledgebase-item.html item=item %}
{% endfor %}
</div>
</div>
{% endif %}
{% if include.related.size > 0 %}
{% include c_related-links.html
title=site.data._en.knowledgebase-text.related
links=include.related
%}
{% endif %}
</div>