-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
95 lines (83 loc) · 3.37 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
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
89
90
91
92
93
94
95
{{! Front page; this file renders a front page with a list of the latest posts }}
{{> head}}
{{> navbar}}
{{> blog_header source='tag'}}
{{!-- TODO: FIX FOR TRANSPARENT NAVBAR DURING INLINE--}}
<main class="main main-raised" {{#checkIf @config.custom.blog_header_configuration '==' 'inline_picture'}} style="margin-top: 20px;"{{/checkIf}}>
<div class="hestia-blogs" data-layout="full-width">
<div class="container">
{{#checkIf @config.custom.blog_header_configuration '!=' 'big_picture'}}
{{!-- FIX FOR PICTURE NOT IN MIDDLE --}}
<div class="row">
<div class="col-md-8 single-post-container col-md-offset-2" data-layout="full-width">
{{!-- /FIX FOR PICTURE NOT IN MIDDLE --}}
<div class="row">
<div class="col-md-12">
<h1 class="hestia-title title-in-content">{{tag.name}}</h1>
{{#checkIf @config.custom.blog_header_configuration '==' 'inline_picture'}}
<img class="wp-post-image image-in-page"
src="
{{#if tag.featuredImage.url}}
{{tag.featuredImage.url}}
{{else}}
{{!-- fallback to bigheader background, of tag has no image --}}
{{@config.custom.bigheader_background}}
{{/if}}
"
alt=""
>
{{/checkIf}}
</div>
</div>
</div>
</div>
{{/checkIf}}
{{#checkIf tag.id '==' @config.custom.blog_tag}}
{{#if @renderer.isFirstPage}}
{{>blog_featured}}
{{/if}}
{{/checkIf}}
<div class="row">
<div class="col-md-10 col-md-offset-1 blog-posts-wrap">
<div class="flex-row">
{{!-- use counter Variable to identify the odd/even post --}}
{{setVar _post_counter 0 @config.custom}}
{{#each posts}}
<article id="post-40"
class="card card-blog post type-post status-publish format-standard has-post-thumbnail hentry
{{#if @config.custom.blog_list_style_shadow}}
card-raised sticky
{{else}}
card-plain
{{/if}}
">
<div class="row ">
{{#checkIf @config.custom.blog_list_style_picture_position '==' 'right'}}
{{>bloglist_text}}
{{>bloglist_image}}
{{/checkIf}}
{{#checkIf @config.custom.blog_list_style_picture_position '==' 'left'}}
{{>bloglist_image}}
{{>bloglist_text}}
{{/checkIf}}
{{#checkIf @config.custom.blog_list_style_picture_position '==' 'alternating'}}
{{#checkIf (math (incVar _post_counter @config.custom) '%' 2) '==' 0}}
{{>bloglist_image}}
{{>bloglist_text}}
{{else}}
{{>bloglist_text}}
{{>bloglist_image}}
{{/checkIf}}
{{/checkIf}}
</div>
</article>
{{/each}}
</div>
{{!-- PAGINATE --}}
{{> pagination}}
</div>
</div>
</div>
</div>
</main>
{{> footer}}