-
Notifications
You must be signed in to change notification settings - Fork 25
/
post.hbs
executable file
·83 lines (77 loc) · 4.14 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
<section id="post-container" role="main">
{{#post}}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="container">
<div class="row">
<aside class="col-sm-2 hidden-xs">
<ul>
<li class="side-header">Published</li>
<li class="text-muted"><time itemprop="datePublished" datetime="{{date format='YYYY-MM-DD'}}">{{date format='DD MMM YYYY'}}</time></li>
{{#foreach tags}}
{{#if @first}}
<li class="side-header" class="text-muted">Tags</li>
{{/if}}
<li class="text-muted"><a href="{{url}}">{{name}}</a></li>
{{/foreach}}
</ul>
</aside>
<div class="col-sm-8">
<header>
<h1 itemprop="name headline"><a href="{{url}}">{{{title}}}</a></h1>
</header>
<section class="mobile-side visible-xs-block">
<p>
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format='DD MMM YYYY'}}</time>
<span class="text-muted">
{{tags separator=" / "}}
</span>
</p>
</section>
<section itemprop="articleBody text">
{{content}}
</section>
<section class="clearfix">
<h5 class="pull-right">
Share on :
<a href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">Twitter</a>,
<a href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">Facebook</a> or
<a href="https://plus.google.com/share?url={{url absolute="true"}}"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">Google+</a></h5>
</section>
{{#author}}
<footer class="clearfix" itemprop="author" itemscope itemtype="http://schema.org/Person">
<div class="well">
<div class="media">
{{#if image}}
<a class="pull-left" href="{{url}}">
<img class="media-object no-fluid" alt="{{name}}" src="{{image}}" style="width: 64px; height: 64px;">
</a>
{{/if}}
<div class="media-body">
<h4 class="media-heading">by <a href="{{url}}" rel="author" itemprop="url name">{{name}}</a></h4>
{{#if bio}}
<p>{{bio}}</p>
{{else}}
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
{{/if}}
{{#if website}}
<p><a href="{{website}}">{{website}}</a></p>
{{/if}}
</div>
</div>
</div>
</footer>
{{/author}}
</div>
</div>
</div>
</article>
{{/post}}
</section>
{{! Comments include }}
<!--{{> comments}}-->