39 lines
1.0 KiB
Handlebars
Executable File
39 lines
1.0 KiB
Handlebars
Executable File
{{!< default}}
|
|
|
|
{{! The comment above "< default" means - insert everything in this file into
|
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
|
|
|
{{> header}}
|
|
|
|
<main class="content" role="main">
|
|
|
|
<article class="{{post_class}}">
|
|
|
|
|
|
{{! Everything inside the #post tags pulls data from the post }}
|
|
{{#post}}
|
|
|
|
{{! Everything below outputs content of the the post which has been published }}
|
|
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY' locale="fr-fr"}}</time> {{#if tags}}dans {{tags separator=" | "}}{{/if}}</span>
|
|
|
|
<h1 class="post-title">{{{title}}}</h1>
|
|
|
|
<section class="post-content">
|
|
{{content}}
|
|
</section>
|
|
|
|
<footer class="post-footer">
|
|
|
|
{{#if primary_author}}
|
|
<section class="author">
|
|
<h4>{{primary_author.name}}</h4>
|
|
</section>
|
|
{{/if}}
|
|
</footer>
|
|
|
|
{{/post}}
|
|
|
|
</article>
|
|
|
|
</main>
|