-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpage-courses.hbs
74 lines (52 loc) · 1.97 KB
/
page-courses.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{{#is "page"}}{{/is}}
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
<header class="site-header outer {{#if feature_image}}"
style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
<div class="inner">
{{> "site-nav"}}
<div class="site-header-content course_page_header">
<h1 class="site-title">Courses</h1>
<div class="search-box">
<form id="search-courses">
<input class="search-txt" type="text" name="" placeholder="Search">
<a class="search-btn">
<i class="fa fa-search"></i>
</a>
</form>
</div>
</div>
</div>
</header>
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<main id="site-main" class="site-main outer" role="main">
<div class="inner">
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
<header class="post-full-header">
</header>
{{#if feature_image}}
<figure class="post-full-image" style="background-image: url({{feature_image}})">
</figure>
{{/if}}
<section class="post-full-content">
<div id="course_cntainer" class="course_container">
</div>
{{content}}
</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" src="{{asset "js/Courses/courses.js"}}"></script>
<script>
$(function () {
var $postContent = $(".post-full-content");
$postContent.fitVids();
});
</script>
{{/contentFor}}