-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallouts.html
More file actions
39 lines (36 loc) · 1.8 KB
/
callouts.html
File metadata and controls
39 lines (36 loc) · 1.8 KB
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
{% if page.callouts %}
{% assign callouts=site.data.[page.callouts] %}
<section class="hero {% if callouts.height %} {{ callouts.height }} {% else %} is-medium {% endif %} {{ callouts.style }}">
<div class="hero-body">
<div class="container">
<div class="columns is-multiline is-centered">
{% for callout in callouts.items %}
<div class="column is-4 has-text-centered">
{% if callout.icon %}
<div class="icon callout-icon">
{% if callout.icon_brand %}
<i class="fab {{ callout.icon }} fa-4x"></i>
{% else %}
<i class="fas {{ callout.icon }} fa-4x"></i>
{% endif %}
</div>
{% endif %}
<p class="title is-5">{{ callout.title }}</p>
<p class="subtitle is-5">{{ callout.subtitle }}</p>
{% if callout.description %}
<div class="content">
<p>{{ callout.description | newline_to_br }}</p>
</div>
{% endif %}
{% if callout.call_to_action_name %}
<a href="{{ callout.call_to_action_link | relative_url }}" class="button is-primary">
{{ callout.call_to_action_name }}
</a>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}