recettes/templates/tag.hbs

40 lines
1.2 KiB
Handlebars

{{#extend "index"}}
{{#content "title"}}
Recettes • {{ title }}
{{/ content}}
{{#content "content"}}
<div class="content row">
<div class="list-recette list col-sm-8">
{{#if contents }}
{{{ contents }}}
{{/if }}
<h2>Recettes</h2>
{{#each posts}}
<article class="content">
<header class="header">
<h3 class="list-content-title">
<a href="{{ path.href }}"><span class="glyphicon glyphicon-apple"></span>{{ data.title }}</a>
</h3>
</header>
<section class="content-article">
{{{ data.description }}}
</section>
</article>
{{/ each}}
</div>
<div class="list-tags list col-sm-4">
<ul class="list-group">
{{#each tags}}
<a href="/{{ @key }}/" class="list-group-item {{#ifCond @key '==' ../tag }}active{{/ifCond }}">
<span class="badge">{{ posts.length }}</span>
{{ data.title }}
</a>
{{/each}}
</ul>
</div>
</div>
{{/ content}}
{{/ extend}}