-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
96 lines (86 loc) · 2.63 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
96
{{!< default}} <header class="header-outer">
<div class="header-inner container" role="banner" itemscope itemtype="http://schema.org/WPHeader">
{{#if @site.logo}}
<h1 class="site-title title"><a class="site-logo" href="{{@site.url}}"><img src="{{@site.logo}}"
alt="{{@site.title}}" /></a></h1>
{{else}}
<h1 class="site-title title"><a title="{{@site.title}}" href="{{@site.url}}"
itemprop="headline">{{{@site.title}}}</a></h1>
<p class="site-description" itemprop="description">{{@site.description}}</p>
{{/if}}
</div>
{{> memberpanel}}
</header>
<div class="main-outer" id="homepage">
<aside class="search-term text-center">
<p>{{plural pagination.total empty='No post' singular='% post' plural='% posts'}} under:</p>
<h2 class="title">{{tag.name}}</h2>
</aside>
<main class="main-inner clearfix">
{{#foreach posts visibility="all"}}
<article id="post-{{id}}" class="{{post_class}} clearfix" itemscope
itemtype="http://schema.org/BlogPosting">
<div class="post-cover" itemprop="image" content="{{img_url feature_image}}">
<ul class="post-header">
<li class="section post-title" itemprop="name">
<h2 class="title">
<a rel="bookmark" href="{{{url}}}">{{title}}</a>
</h2>
</li>
<li class="post-meta">
{{#if @site.members_enabled}}
{{#unless access}}
<span class="post-mark-{{ visibility }}">
<span class="meta-member mark-member">Member</span>
<span class="meta-member mark-paid">Paid</span>
</span>
{{/unless}}
{{/if}}
<span class="meta-date">{{date format='MMM Do, YYYY'}}</span>
{{#primary_tag}}
<span class="meta-divider">•</span>
<span class="meta-label"><a href="{{url}}">{{name}}</a></span>
{{/primary_tag}}
</li>
</ul>
</div>
{{! Dynamically load image size }}
<style>
#post- {
{
id
}
}
.post-cover {
background-image: url({{img_url feature_image size="l"}});
}
#post- {
{
id
}
}
:nth-child(3n - 5) .post-cover {
background-image: url({{img_url feature_image size="xl"}});
}
@media screen and (max-width: 640px) {
#post- {
{
id
}
}
.post-cover,
#post- {
{
id
}
}
:nth-child(3n - 5) .post-cover {
background-image: url({{img_url feature_image size="m"}});
}
}
</style>
</article>
{{/foreach}}
</main>
<div class="pagination-outer">{{{pagination}}}</div>
</div>