-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathscala3-guides-card-group.html
32 lines (32 loc) · 1.44 KB
/
scala3-guides-card-group.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
<div class="card-group">
{% for overview in page.guides %}
<div class="white-card">
<div class="card-wrap">
<div class="card-header">
{% if overview.icon %}
<div class="card-avatar">
<div class="icon"><i class="fa fa-{{ overview.icon }}" aria-hidden="true"></i></div>
</div>
{% endif %}
<a href="{{ overview.url }}"><h3>{{ overview.title }}</h3></a>
</div>
<div class="card-content">
{% if overview.label-text %}<div class="tag" {% if overview.label-color %}style ="background: {{ overview.label-color }}"{% endif %}>{{ overview.label-text }}</div>{% endif %}
{% if overview.by %}<div class="by">By {{ overview.by }}</div>{% endif %}
{% if overview.description %}<p>{{ overview.description }}</p>{% endif %}
{% if overview.subdocs %}
<strong>Contents</strong>
<ul class="subdocs">
{% for doc in overview.subdocs %}
<li><a href="{{ doc.url }}">{{ doc.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
<div class="card-footer">
<a class="go-btn" href="{{ overview.url }}"><i class="fa fa-arrow-right" aria-hidden="true"></i> Read</a>
</div>
</div>
{% endfor %}
</div>