-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.hbs
40 lines (38 loc) · 1.33 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
{{!< default}}
{{> site-header}}
{{#post}}
<main id="site-main" class="site-main outer">
<div class="container">
<article class="card post-full {{post_class}}">
<div class="single_post_container">
<div class="single_post_header single_page_header" data-post-featured-image="{{img_url feature_image size="l"}}">
<div class="single_post_header_inner">
<div class="single_post_header_title">
<h1>{{title}}</h1>
</div>
</div>
</div>
<div class="single_post_content">
<section class="post-full-content">
<div class="post-content">
{{content}}
</div>
</section>
</div>
</div>
</article>
</div>
</main>
{{/post}}
{{#contentFor "scripts"}}
<script>
$(document).ready(function () {
var featuredImage = $(".single_post_header").data("post-featured-image");
$('.single_post_header').css('background', 'url(' + featuredImage + ')');
// FitVids - start
var $postContent = $(".post-full-content");
$postContent.fitVids();
// FitVids - end
});
</script>
{{/contentFor}}