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