2013-10-17 03:16:40 +00:00
|
|
|
{{!< 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">
|
2013-12-02 10:53:48 +00:00
|
|
|
<a class="blog-logo" href="{{@blog.url}}">
|
2013-10-17 03:16:40 +00:00
|
|
|
{{#if @blog.logo}}
|
|
|
|
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
|
|
|
{{else}}
|
2014-01-10 15:31:25 +00:00
|
|
|
<span class="blog-title">{{@blog.title}}</span>
|
2013-10-17 03:16:40 +00:00
|
|
|
{{/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>
|