-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfaq.liquid
More file actions
71 lines (64 loc) · 1.58 KB
/
faq.liquid
File metadata and controls
71 lines (64 loc) · 1.58 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<div class="faq-page">
<div class="faq-page-width">
<div class="faq-page-header">
<h1>{{ page.title }}</h1>
<div class="faq-page-header-content">
{{ page.content }}
</div>
</div>
<div class="faq-page-body">
{% for block in section.blocks %}
{% if block.type == 'category' %}
<h2 class="faq-page-category">{{ block.settings.title }}</h2>
{% else %}
<div class="faq-page-question">
<header class="faq-page-question-header">
<h3>{{ block.settings.title }}</h3>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" width="48"><path d="M480-345 240-585l43-43 197 198 197-197 43 43-240 239Z"/></svg>
</header>
<div class="faq-page-question-body">
<div class="faq-page-question-body-inner">
{{ block.settings.body }}
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% schema %}
{
"name": "FAQ",
"settings": [],
"blocks": [
{
"type": "category",
"name": "Category",
"settings": [
{
"type": "text",
"id": "title",
"label": "Category title"
}
]
},
{
"type": "question",
"name": "Question",
"settings": [
{
"type": "text",
"id": "title",
"label": "Question title"
},
{
"type": "richtext",
"id": "body",
"label": "Question body"
}
]
}
]
}
{% endschema %}