Add description to tag pages (#174)

This commit is contained in:
Chris Ireland 2020-04-30 18:57:14 +01:00 committed by GitHub
parent 2f3410a0e2
commit d08b96a074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
tag.hbs
View file

@ -15,9 +15,18 @@ into the {body} of the default.hbs template --}}
{{> hero background=feature_image}}
<div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title bigger">{{name}}</h1>
<p class="m-heading__description">
{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} {{t "with this tag"}}
</p>
{{#if description}}
<p class="m-hero-description">
{{description}}
</p>
{{/if}}
<div class="m-hero__meta">
<ul class="m-hero-stats">
<li>
{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} {{t "with this tag"}}
</li>
</ul>
</div>
</div>
</section>
{{/tag}}