forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
executable file
·42 lines (40 loc) · 1.19 KB
/
tag.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
{{!< default}}
{{!-- Tag header --}}
{{#tag}}
<section class="tag-header">
<div class="container wrapper">
<div class="grid">
<div class="col-xs-12">
<div class="tag-header__content center-xs">
{{!-- Tag cover image --}}
{{#if feature_image}}
<div class="tag-header__img lazyload" data-src="{{img_url feature_image}}"></div>
{{/if}}
<h2 class="tag-header__name">{{name}}</h2>
<div class="tag-header__description">{{description}}</div>
</div>
</div>
</div>
</div>
</section>
{{/tag}}
{{!-- The main content --}}
{{#if posts}}
<section class="tag-posts" id="content">
<div class="container wrapper">
<div class="grid">
{{#foreach posts}}
<div class="col-xs-12 col-md-4 post-wrapper">
{{> post-card class="post-card--1-3"}}
</div>
{{/foreach}}
</div>
<div class="grid more-posts-wrapper"></div>
<div class="grid">
<div class="col-xs-12 center-xs">
<button id="load-more-btn" class="btn btn__large btn__wide" onClick="loadMorePosts();">{{t "Load more posts"}}</button>
</div>
</div>
</div>
</section>
{{/if}}