-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtag.hbs
70 lines (67 loc) · 2.48 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
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{#tag}}
{{#contentFor "styles"}}
<style type="text/css">
.cover-image {
{{#if feature_image}}
background-image: url({{img_url feature_image size='xl'}});
{{else}}
background-image: url({{asset "img/sven-scheuermeier-178631-unsplash.jpg"}});
{{/if}}
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
.site-header {
min-height: 400px;
}
@media(max-width: 1024px) {
.cover-image {
{{#if feature_image}}
background-image: url({{img_url feature_image size='l'}});
background-image: -webkit-image-set(
url({{img_url feature_image size='l'}}) 1x,
url({{img_url feature_image size='xl'}}) 2x
);
background-image: image-set(
url({{img_url feature_image size='l'}}) 1x,
url({{img_url feature_image size='xl'}}) 2x
);
{{/if}}
}
}
@media(max-width: 640px) {
.cover-image {
{{#if feature_image}}
background-image: url({{img_url feature_image size='m'}});
background-image: -webkit-image-set(
url({{img_url feature_image size='m'}}) 1x,
url({{img_url feature_image size='l'}}) 2x
);
background-image: image-set(
url({{img_url feature_image size='m'}}) 1x,
url({{img_url feature_image size='l'}}) 2x
);
{{/if}}
}
}
</style>
{{/contentFor}}
{{/tag}}
{{!-- The main content area --}}
<main id="site-main" class="site-main outer">
<div class="grid-container">
<div class="post-feed loading-cards grid-x grid-padding-x grid-padding-y small-up-1 medium-up-2 large-up-3">
<div class="post-card-ex cell"></div>
{{#foreach posts}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}
</div>
{{pagination}}
</div>
</main>
{{#contentFor "scripts"}}
<script async type="text/javascript" src="{{asset "/scripts/grid.js"}}"></script>
{{/contentFor}}