forked from godofredoninja/Mapache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
41 lines (35 loc) · 1.88 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
{{!< default}}
{{!-- custom Styles For tag <body> --}}
{{#contentFor "mapache_class_body"}}is-tag{{/contentFor}}
{{#contentFor "mapache_class_site_main"}}pb4{{/contentFor}}
{{#tag}}
<div class="site-category u-bgGradient u-relative u-textAlignCenter u-flexCenter u-marginBottom30 u-textColorWhite">
{{#if feature_image}}
<img class="u-absolute u-image u-block blur-up lazyload"
src="{{img_url feature_image size="l"}}"
srcset="{{img_url feature_image size="xxs"}}"
data-srcset="{{img_url feature_image size="s"}} 300w, {{img_url feature_image size="m"}} 600w, {{img_url feature_image size="l"}} 1000w, {{img_url feature_image size="xl"}} 2000w"
data-sizes="(max-width: 800px) 400px, (max-width: 1170px) 700px, 1400px"
alt="{{title}}"
/>
<div class="u-absolute0 zindex2 u-bgOpacity"></div>
{{else}}
<img class="u-absolute u-image zindex2 u-block blur-up" src="{{asset "images/tag-bg.svg"}}" alt="Background of Tag">
{{/if}}
<div class="site-category-body u-relative extreme-container zindex3 u-fontSize20 u-flexCenter u-block-before-lg">
<div class="site-category-header u-flex1">
<h1 class="site-category-title u-fontSizeJumbo u-md-fontSize36 u-textCapitalize u-textColorWhite">{{name}}</h1>
{{#if description}}<p class="site-category-description u-marginTop20 u-maxWidth740 u-marginAuto">{{description}}</p>{{/if}}
</div>
<div class="site-category-count u-flex0 u-marginTop30">
<div class="u-textAlignCenter u-inlineBlock">
<span class="site-category-post-count u-block u-fontSize40 u-md-fontSizeLarger u-fontWeightBold">{{../pagination.total}}</span> {{t "Articles"}}
</div>
</div>
</div>
</div>
{{/tag}}
<section class="extreme-container">
{{!-- lates post - partials/loop.hbs --}}
{{> "loop"}}
</section>