mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-10 02:28:02 +00:00
8b420d01a5
Fixes #67
38 lines
1.0 KiB
Handlebars
38 lines
1.0 KiB
Handlebars
{{!< default}}
|
|
|
|
{{! The comment above "< default" means - insert everything in this file into
|
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
|
|
|
<main class="content" role="main">
|
|
|
|
<article class="{{post_class}}">
|
|
|
|
{{! Each post has the blog logo at the top, with a link back to the home page }}
|
|
<header class="post-header">
|
|
<a class="blog-logo" href="{{@blog.url}}">
|
|
{{#if @blog.logo}}
|
|
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
|
{{else}}
|
|
<span class="blog-title">{{@blog.title}}</span>
|
|
{{/if}}
|
|
</a>
|
|
</header>
|
|
|
|
{{! Everything inside the #post tags pulls data from the post }}
|
|
{{#post}}
|
|
|
|
{{! Everything below outputs content of the the post which has been published }}
|
|
|
|
|
|
<h1 class="post-title">{{{title}}}</h1>
|
|
|
|
<section class="post-content">
|
|
{{content}}
|
|
</section>
|
|
|
|
{{/post}}
|
|
|
|
</article>
|
|
|
|
</main>
|