-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.hbs
60 lines (55 loc) · 1.52 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
60
{{!--
This template is used for pages.
--}}
{{!-- This block preloads specific assets for the page --}}
{{#contentFor "preload"}}
<link rel="preload" href="{{asset "css/post.css"}}" as="style" />
{{/contentFor}}
{{!-- This block loads specific styles for the page --}}
{{#contentFor "styles"}}
<link
rel="stylesheet"
type="text/css"
href="{{asset "css/post.css"}}"
media="screen"
/>
{{/contentFor}}
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!< default}}
<div class="f-main-container">
{{> header}}
<main
class="f-standard-container has-newsletter"
role="main"
>
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<div class="f-standard-wrapper in-post">
<article class="f-article">
{{> post-header}}
<div class="f-article-content js-article-content">
{{#if access}}
{{content}}
{{else}}
{{{html}}}
{{> post-access}}
{{/if}}
</div>
</article>
{{!-- Share --}}
{{> share-post}}
</div>
{{/post}}
{{> blob-shape}}
</main>
<section class="f-newsletter" aria-label="{{t "Newsletter form"}}">
<div class="f-newsletter__wrapper">
{{> "newsletter-form"}}
</div>
</section>
</div>
{{!-- This block loads specific scripts for the page --}}
{{#contentFor "scripts"}}
<script defer src="{{asset "js/post.js"}}"></script>
{{/contentFor}}