-
Notifications
You must be signed in to change notification settings - Fork 49
/
post.hbs
executable file
·67 lines (46 loc) · 1.95 KB
/
post.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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
<a href="{{@blog.url}}" class="read-more"><i class="el el-caret-left read-more"></i> home</a>
<hr>
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
{{#contentFor "initHighlight"}}
<script>hljs.initHighlightingOnLoad();</script>
{{/contentFor}}
<main role="main">
<article class="row {{post_class}}">
<header class="col-xs-12">
<div class="col-md-10 no-margin no-padding post">
<h1 class="title">
{{title}}
</h1>
</div>
<div class="col-md-2">
{{#if feature_image}}
<img src="{{feature_image}}" class="post-image"/>
{{/if}}
</div>
</header>
<section class="col-xs-12">
{{content}}
</section>
<footer class="col-xs-12 author">
<hr>
</footer>
</article>
<!--<div id="disqus_thread" class="post"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = ''; // required: replace example with your forum shortname
var disqus_identifier = '{{post.id}}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>-->
</main>
{{/post}}