e2911f2d46
As per JohnONolan’s suggestion, I have edited the nav to match the code in post.hbs: https://github.com/TryGhost/Casper/blob/master/post.hbs#L9
30 lines
963 B
Handlebars
30 lines
963 B
Handlebars
{{!< default}}
|
|
|
|
{{! This is a page template. A page outputs content just like any other post, and has all the same
|
|
attributes by default, but you can also customise it to behave differently if you prefer. }}
|
|
|
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
|
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="content" role="main">
|
|
|
|
<article class="{{post_class}}">
|
|
{{! Everything inside the #post tags pulls data from the post }}
|
|
{{#post}}
|
|
|
|
<header class="post-header">
|
|
<h1 class="post-title">{{title}}</h1>
|
|
</header>
|
|
|
|
<section class="post-content">
|
|
{{content}}
|
|
</section>
|
|
|
|
{{/post}}
|
|
</article>
|
|
|
|
</main>
|