forked from zentel/kidsblogtemp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
88 lines (83 loc) · 2.98 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{{!< default}}
<div class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="vertical site-head-content inner">
<a href="{{@blog.url}}"><h1 class="blog-title">{{@blog.title}}</h1></a>
<div class="head-social">
{{! Including the social template (partials/social)}}
{{> social}}
</div>
</div>
</div>
<header class="top-main">
<main class="site-main">
<div class="general-cont">
<div class="sez-left">
<a class="blog-logo" id="blog" href="{{@blog.url}}">
{{#if @blog.logo}}<img src="{{@blog.logo}}" alt="Blog Logo">{{/if}}
</a>
</div>
<div class="sez-right">
{{! Including the menu template (partials/menu)}}
{{> menu}}
<a class="btn-select">All tags</a>
<ul class="menu-list-tag"></ul>
</div>
</div>
</main>
{{! Search section}}
<div class="cont-search">
<div class="general-cont">
<div class="sez-left">
<button class="submit-search" type="submit"></button>
</div>
<div class="sez-right">
<form id="search-form" action="#">
<input class="search" data-element="search-input" autocomplete="off" name="q" type="search" placeholder="Search...">
</form>
</div>
</div>
</div>
</header>
<div class="content post-container" role="main">
{{#foreach posts}}
<div class="cont-post-article fadeUp">
{{#if image}}
<div class="post-image" style="background-image:url({{image}});"></div>
{{/if}}
<article class="{{post_class}}" >
<span class="ico-featured"></span>
<div class="sez-left sez-left-post">
<time class="date-post" datetime="{{date format='YYYY-MM-DD'}}">
<span class="month">{{date format="MMM"}}</span>
<span class="day">{{date format="DD"}}</span>
<span class="year">{{date format="YYYY"}}</span>
</time>
</div>
<div class="sez-right sez-right-post">
<header class="post-header">
<span class="post-meta">{{tags separator=" - "}}</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<span class="post-author">by {{#author}} <a href="{{url}}">{{name}}</a> {{/author}}</span>
</header>
<section class="post-excerpt">
<p> {{excerpt}}…</p>
</section>
<div class="post-info">
<a href="{{url}}" class="post-info-more">Read More</a>
<a href="{{url}}#disqus_thread" class="post-info-comment"></a>
</div>
</div>
<div class='hidden search-content'>
{{excerpt words="999999"}}
</div>
<ul class='hidden-tag-list'>
{{#each tags}}
<li>{{name}}</li>
{{/each}}
</ul>
</article>
</div>
{{/foreach}}
</div>
{{! Including the pagination template (partials/pagination)}}
{{pagination}}