-
Notifications
You must be signed in to change notification settings - Fork 4
/
cards.liquid
27 lines (27 loc) · 931 Bytes
/
cards.liquid
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
{% for card in site.data.locale[page.lang].layout.cards %}
<div class="card border-dark mb-3">
<div class="card-header text-light bg-dark">
<i class="{{ card.icon_category }} fa-{{ card.icon_type }}"
aria-hidden="true"></i>
{{ card.label }}
</div>
<div class="card-body" style="padding: 0.5rem">
<ul class="nav nav-pills flex-column">
{% for item in card.links %}
{%-if item.title-%}
{%-assign item_title = item.title-%}
{%-else-%}
{%-assign item_title = item.label-%}
{%-endif-%}
<li class="nav-item">
<a class="nav-link" href="{{ item.url }}"
title="{{ item_title }}" style="padding: 0.35rem 0.25rem">
<i class="{{ item.icon_category }} fa-{{ item.icon_type }} fa-fw"
aria-hidden="true"></i>
{{ item.label }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}