-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpage.hbs
59 lines (47 loc) · 2.32 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "styles/post.css"}}"/>
{{/contentFor}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<main id="site-main" class="site-main">
<div class="grid-container post-container">
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
<header class="post-full-header">
{{#if feature_image}}
<figure class="post-full-image">
<div class="post-full-image-background"></div>
<img src="{{feature_image}}" />
<div class="sk-cube-grid" id="spinkit">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
</figure>
{{/if}}
<div class="title-wrapper">
<h1 class="post-full-title">{{title}}</h1>
</div>
</header>
<section class="post-full-content">
<div class="post-content">
{{content}}
</div>
</section>
</article>
</div>
</main>
{{/post}}
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
{{#contentFor "scripts"}}
<script type="text/javascript" defer src="{{asset "/scripts/post.js"}}"></script>
{{/contentFor}}