-
Notifications
You must be signed in to change notification settings - Fork 5
/
tag.hbs
28 lines (25 loc) · 1.01 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
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{!-- If we have a tag cover, display that - else blog cover - else nothing --}}
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else if tag.feature_image}}" style="background-image: url({{tag.feature_image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}{{/if}}">
<div class="vertical">
{{#tag}}
<div class="main-header-content inner">
<h1 class="page-title">{{name}}</h1>
<h2 class="page-description">
{{#if description}}
{{description}}
{{else}}
A {{../pagination.total}}-post collection
{{/if}}
</h2>
</div>
{{/tag}}
</div>
</header>
{{!-- The main content area on the homepage --}}
<main class="content" role="main">
<div id="origami-posts">
</div>
</main>
{{> "loop"}}