forked from thomasvaeth/trophy-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
72 lines (63 loc) · 2.17 KB
/
index.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
{{!< default}}
<section class="previews">
<div>
{{#foreach posts}}
<figure class="absolute-bg preview__img" style="background-image: url('{{img_url feature_image absolute="true"}}');"></figure>
{{/foreach}}
<div class="previews__container">
<span lang='tr'>{{@blog.description}}</span>
<h1>{{@blog.title}}</h1>
</div>
</div>
<div>
<header>
<ul class="tabs">
<li class="tabs__item" lang='tr'>Makaleler</li>
<li class="tabs__item" lang='tr'>Etiketler</li>
</ul>
</header>
<div class="tab">
<ul>
{{#foreach posts}}
<li class="preview">
<a class="preview__link" href="{{url}}">
<span class="preview__date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMM D, YYYY"}}</span>
<h2 class="preview__header">{{title}}</h2>
<p class="preview__excerpt">{{excerpt words="30"}}...</p>
<span class="preview__more">Devamını oku</span>
</a>
</li>
{{/foreach}}
</ul>
{{pagination}}
{{> "footer-page"}}
</div>
<div class="tab">
{{#get "tags" limit="all" include="count.posts"}}
<ul class="cards">
{{#foreach tags}}
{{#if count.posts}}
<li class="card">
<a class="card__link" href="/tag/{{slug}}/">
<div class="card__img">
{{#get "posts" filter="tags:{{slug}}" limit="1"}}
{{#foreach posts}}
<figure class="absolute-bg" style="background-image: url('{{img_url feature_image absolute="true"}}');"></figure>
{{/foreach}}
{{/get}}
</div>
<div class="card__container">
<h2 class="card__header">{{name}}</h2>
<p class="card__count">{{count.posts}} Makale</p>
<span class="card__more" lang='tr'>Tümünü Göster</span>
</div>
</a>
</li>
{{/if}}
{{/foreach}}
</ul>
{{/get}}
{{> "footer-page"}}
</div>
</div>
</section>