forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage.hbs
43 lines (35 loc) · 1.13 KB
/
page.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<div class="site-subnav">
{{#has slug="readings"}}
{{!-- Include subnav if applicable for each page here --}}
{{/has}}
</div>
<main id="site-main" class="site-main outer" role="main">
<section class="inner">
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
<header class="post-full-header">
<h2 class="post-full-title">{{title}}</h2>
</header>
{{#if feature_image}}
<figure class="post-full-image" style="background-image: url({{feature_image}})">
</figure>
{{/if}}
<section class="post-full-content">
{{content}}
</section>
</article>
</section>
</main>
{{> floating-header}}
{{/post}}
{{#contentFor "scripts"}}
<script>
(function($) {
floatingHeader.update();
}),(jQuery);
</script>
{{/contentFor}}