forked from GavickPro/Portfolio-Free-Ghost-Theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.hbs
executable file
·46 lines (39 loc) · 1.91 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
43
44
45
46
{{!< default}}
{{! The main content area on the homepage }}
<main role="main" class="{{#if @blog.cover}} custom-bg{{else}} default-bg{{/if}}"{{#if @blog.cover}} style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="main__wrapper">
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
<h2 class="main__header">Tag archive: <span class="main__header--tagname">{{tag.name}} ({{pagination.total}})</span></h2>
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}} post__wrapper" data-cols="4">
<div class="post__wrapper_helper post__wrapper_helper--notloaded el__transition">
{{#if image}}
<img src="{{image}}" alt="{{{title}}}" class="post__image_to_load" />
{{/if}}
<div class="post__preview el__transition">
<header class="post__header">
<h2 class="post__title">
<a href="{{url}}" class="post__link post__title_link"><span>{{{title}}}</span></a>
</h2>
</header>
<p class="post__excerpt"><a href="{{url}}" class="post__link post__readmore">{{excerpt characters="120"}}…</a></p>
</div>
<footer class="post__meta">
{{#if tags}}
<ul class="post__tags">
{{#foreach tags}}
<li class="post__tag"><a href="{{url}}" class="post__link post__tag_link">{{name}}</a>{{#if @last}} {{else}}, {{/if}}</li>
{{/foreach}}
</ul>
{{/if}}
</footer>
</div>
</article>
{{/foreach}}
</div>
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
</main>