casper-i18n/tag.hbs

35 lines
1.3 KiB
Handlebars
Raw Normal View History

{{!< 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 --}}
2014-12-23 11:50:59 +00:00
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
2015-02-28 13:00:15 +00:00
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
2015-02-27 14:48:15 +00:00
{{/if}}
</nav>
<div class="vertical">
{{#tag}}
<div class="main-header-content inner">
<h1 class="page-title">{{name}}</h1>
2014-12-23 11:50:59 +00:00
<h2 class="page-description">
{{#if description}}
{{description}}
2014-12-23 11:50:59 +00:00
{{else}}
A {{../pagination.total}}-post collection
2014-12-23 11:50:59 +00:00
{{/if}}
2014-12-23 12:21:53 +00:00
</h2>
</div>
{{/tag}}
</div>
</header>
{{!-- The main content area on the homepage --}}
<main class="content" role="main">
{{!-- The tag below includes the post loop - partials/loop.hbs --}}
{{> "loop"}}
2014-12-23 11:50:59 +00:00
</main>