78 lines
2.7 KiB
Handlebars
78 lines
2.7 KiB
Handlebars
{{#extend "base"}}
|
|
|
|
{{#content "title"}}
|
|
Recettes • {{ categoryPage.data.title }} • {{ data.title }}
|
|
{{/ content}}
|
|
|
|
{{#content "navitems"}}
|
|
{{#if next }}
|
|
<li><a href="{{ next.path.href }}">{{formatTimestamp next.date }} {{ next.procedure }}</a></li>
|
|
{{/if }}
|
|
<li><a href="/{{ date }}/index.html">Up</a></li>
|
|
{{#if previous }}
|
|
<li><a href="{{ previous.path.href }}">{{formatTimestamp previous.date }} {{ previous.procedure }}</a></li>
|
|
{{/if }}
|
|
{{/content}}
|
|
|
|
{{#content "content"}}
|
|
<header class="header">
|
|
<h1 class="content-title">
|
|
Recette {{ data.title }}
|
|
</h1>
|
|
<div class="header-container row">
|
|
<div class="header-category col-sm-4">
|
|
<a href="/{{ category }}/">{{ categoryPage.data.title }}</a>
|
|
</div>
|
|
<div class="col-sm-2">
|
|
</div>
|
|
<div class="header-metadata col-sm-6">
|
|
{{#if data.description }}{{ data.description }} • {{/if }}
|
|
{{ data.portion }}
|
|
{{#if data.time }} • {{ data.time }}{{/if }}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<section class="content">
|
|
{{#each data.steps }}
|
|
<div class="row step">
|
|
<ul class="col-xs-5 ingredients">
|
|
{{#each ingredients}}
|
|
<li class="row ingredient">
|
|
<span class="col-xs-4 ing-quantity">{{ quantity }} {{ unit }}</span>
|
|
<span class="col-xs-8 ing-name">{{ name }}</span>
|
|
{{#if comment }}<span class="ing-comment">{{ comment }}</span>{{/if }}
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
<div class="col-xs-7 instructions">
|
|
{{ instructions }}
|
|
</div>
|
|
</div>
|
|
{{/each }}
|
|
{{#if data.image }}
|
|
<div class="recipe-image">
|
|
<img src="/{{ category }}/{{ data.image }}" />
|
|
</div>
|
|
{{/if }}
|
|
|
|
{{{ contents }}}
|
|
</section>
|
|
|
|
<section class="comments hidden-print">
|
|
<h2>Commentaires</h2>
|
|
<div id="disqus_thread"></div>
|
|
<script>
|
|
(function() { // DON'T EDIT BELOW THIS LINE
|
|
var d = document, s = d.createElement('script');
|
|
|
|
s.src = '//inf3recettes.disqus.com/embed.js';
|
|
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
(d.head || d.body).appendChild(s);
|
|
})();
|
|
</script>
|
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
|
</section>
|
|
{{/ content}}
|
|
|
|
{{/ extend}}
|