/
index.html
40 lines (31 loc) · 1.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
---
layout: default
---
<div id="outerSearchBox" class="col-11 col-md-8 col-lg-6">
<i class="fas fa-search fa-2x" id="searchIcon"></i>
<input type="search" id="innerSearchBox">
</div>
<div class="row justify-content-start category-row">
{% assign rowcount = 0 %}
{% for section in site.data.sections %}
{% assign rowend = forloop.index | modulo: 5 %}
{% if rowend == 0 or forloop.index == forloop.length %}
{% include category-button.html %}
{% include mobile-table.html id-param=section.id title-param=section.title %}
{% assign offcount = 5 | times: rowcount %}
{% for section in site.data.sections limit: 5 offset: offcount %}
{% include table.html id-param=section.id title-param=section.title %}
{% endfor %}
{% if forloop.index != forloop.length %}
{% assign rowcount = rowcount | plus: '1' %}
<div class="w-100 d-none d-md-block"></div>
{% endif %}
{% else %}
{% include category-button.html %}
{% include mobile-table.html id-param=section.id title-param=section.title %}
{% endif %}
{% endfor %}
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
</div>