forked from evoko/zendesk-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
home_page.hbs
85 lines (78 loc) · 2.49 KB
/
home_page.hbs
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{{!-- Hide header background on the home page --}}
<style>
.header {
background-color: transparent;
box-shadow: none;
}
</style>
<section class="section hero hero-large">
<div class="hero-inner">
<h1 class="hero-inner-home-heading">Hi. How can we help?</h1>
<div class="hero-inner-search">
{{search submit=false instant=settings.instant_search class="search search-full" placeholder="Search knowledge base..."}}
</div>
{{!-- <p class="hero-inner-description"><strong><i class="fas fa-book"></i> Guides:</strong> getting started with</p> --}}
</div>
</section>
<div class="container">
<section class="section knowledge-base">
<h1 class="home-categories-heading" id="browse-knowledge-base">Browse the knowledge base</h1>
<section class="categories blocks">
<ul class="blocks-list">
{{#each categories}}
{{#if ../has_multiple_categories}}
<li class="blocks-item">
<a href='{{url}}' class="blocks-item-link">
<h2 class="blocks-item-title">{{name}}</h2>
{{!-- <p class="blocks-item-description">{{excerpt description}}</p> --}}
</a>
</li>
{{else}}
{{#each sections}}
<li class="blocks-item">
<a href='{{url}}' class="blocks-item-link">
<h2 class="blocks-item-title">
{{name}}
</h2>
{{!-- <p class="blocks-item-description">{{excerpt description}}</p> --}}
</a>
</li>
{{/each}}
{{/if}}
{{/each}}
</ul>
{{pagination}}
</section>
{{#if promoted_articles}}
<section class="articles">
<h3>{{t 'promoted_articles'}}</h3>
<ul class="article-list promoted-articles">
{{#each promoted_articles}}
<li class="promoted-articles-item">
<a href="{{url}}">
{{title}}
{{#if internal}}
<span class="icon-lock" title="{{t 'internal'}}"></span>
{{/if}}
</a>
</li>
{{/each}}
</ul>
</section>
{{/if}}
</section>
{{!-- {{#if help_center.community_enabled}}
<section class="section community">
<h2>{{t 'community'}}</h2>
{{#link 'community' class='community-link'}}
{{t 'join_conversation'}}
{{/link}}
<div class="community-image"></div>
</section>
{{/if}} --}}
{{!-- <section class="section activity">
{{#if settings.show_recent_activity}}
{{recent_activity}}
{{/if}}
</section> --}}
</div>