-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtag.hbs
29 lines (23 loc) · 961 Bytes
/
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
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{!-- The main content area on the homepage --}}
<main class="site-main" role="main">
{{!-- Everything inside the #tag tags pulls data from the tag --}}
{{#tag}}
<section class="site-hero {{#if feature_image}}" style="background-image: url({{img_url feature_image}}){{else}}site-hero-no-cover{{/if}}">
<header class="site-hero-header">
<h2 class="site-hero-title">{{name}}</h2>
<p class="site-hero-description">
{{#if description}}
{{description}}
{{else}}
{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}
{{/if}}
</p>
</header>
<div class="overlay"></div>
</section>
{{/tag}}
{{!-- The tag below includes the post loop - partials/loop-alt.hbs --}}
{{> "loop"}}
</main>