-
Notifications
You must be signed in to change notification settings - Fork 4
/
post.hbs
48 lines (37 loc) · 1.39 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<main class="post-view-content" role="main">
<article class="{{post_class}}">
<h1>{{ title }}</h1>
<section class="post-content">
{{ content }}
<div class="post-tags">
{{tags separator=""}}
</div>
</section>
<section class="post-footer">
<time class="post__date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMMM YYYY"}}</time>
{{> share}}
</section>
<section class="post-full-comments">
<div id='discourse-comments'></div>
<script type="text/javascript">
if (window.location.pathname.indexOf('/p/') < 0) {
DiscourseEmbed = {
discourseUrl: 'https://forum.internetfreedom.in/',
discourseEmbedUrl: '{{url absolute="true"}}'
};
(function () {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
}
</script>
</section>
</article>
</main>
{{/post}}