-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
custom-series-page.hbs
44 lines (42 loc) · 1.37 KB
/
custom-series-page.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
{{!< default}}
{{#contentFor "series_page"}}gh-head-transparent{{/contentFor}}
<div class="page-container sidebar-layout">
<div class="main-content">
{{#post}}
<section class="{{post_class}} post-card">
<div class="page-head">
<h1 class="page-title">{{{title}}}</h1>
</div>
<div class="post-content">
{{content}}
</div>
<main class="tag-container">
{{> cover-tag}}
{{#get "tags" filter="feature_image:-null" include="count.posts,meta_title" order="count.posts desc" }}
{{#foreach tags visibility="internal"}}
<div class="tag-wrapper">
<a href="{{slug}}">
{{#if feature_image}}
<picture>
<source media="(min-width: 1200px)" srcset="{{img_url feature_image size="medium"}} 1x, {{img_url feature_image size="medium_retina"}} 2x">
<img alt="{{title}}" class="lazy" src="{{img_url feature_image}}">
</picture>
{{/if}}
<div class="description">
<h2>{{title}}</h2>
<p>{{description}}</p>
<span class="postcount">{{plural count.posts empty=(t "0 Post") singular=(t "% Post") plural=(t "% Posts")}}</span>
</div>
</a>
</div>
{{/foreach}}
{{/get}}
</main>
</div>
{{/post}}
{{> sidebar}}
</div>
</div>
{{#contentFor "scripts"}}
<script async src="{{asset "js/series.js"}}"></script>
{{/contentFor}}