-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
133 lines (121 loc) · 7.57 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{{!< default}}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<header class="post-header" {{#if feature_image}} style="background-image: url({{feature_image}});"{{/if}}>
<div {{#if feature_image}}class="darken"{{/if}}>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="page-header">
<h1 class="post-title entry-title">
{{{title}}}
</h1>
<h3 class="post-author byline author vcard">
<span class="name">{{{author.name}}}</span>
</h3>
</div>
</div>
</div>
</div>
</div>
</header>
<main class="content" role="main">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<article class="{{post_class}} post-full">
<div class="post-meta">
<div class="text-muted">
<time class="published" datetime="{{date format="YYYY-MM-DD"}}">{{date published_at timeago="true"}}</time>
{{#if tags}} on {{tags}}{{/if}}
</div>
</div>
<section class="post-content">
<!-- Pocket and Readability metadata -->
{{#if feature_image}}
<div class="hidden entry-image post-image">
<!-- Post Image for Pocket and Readability-->
<img class="image-rounded" src="{{feature_image}}" alt="{{{title}}} Header Image"/>
</div>
{{/if}}
{{content}}
</section>
<footer class="post-footer">
<div class="row">
<div class="col-md-8">
<section class="author">
<h5>About the author</h5>
{{#author}}
<div class="row">
<div class="col-xs-12">
<img class="img-circle" src="{{profile_image}}" alt="{{name}}"/>
<h4 class="byline author vcard">
<a class="name" rel="author" href="{{url}}">{{name}}</a>
<br/>
<small>{{location}}</small>
</h4>
</div>
<div class="col-md-10">
<p>{{bio}}</p>
</div>
</div>
{{/author}}
</section>
</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12 col-xs-6">
<section class="share">
<h5>Share this post</h5>
<ul class="list-inline">
<li>
<a href="http://twitter.com/share?text={{title}}&url={{url absolute="true"}}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" data-toggle="tooltip" title="Twitter"><i class="fa fa-twitter fa-fw"></i></a>
</li>
<li>
<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;" data-toggle="tooltip" title="Facebook"><i class="fa fa-facebook fa-fw"></i></a>
</li>
<li>
<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;" data-toggle="tooltip" title="Google Plus"><i class="fa fa-google-plus fa-fw"></i></a>
</li>
<li>
<a href="http://www.addtoany.com/add_to/pocket?linkurl={{url absolute="true"}}&linkname={{title}}" data-toggle="tooltip" title="Pocket">
<i class="fa fa-get-pocket fa-fw"></i>
</a>
</li>
</ul>
</section>
</div>
<div class="col-md-12 col-xs-6">
<section class="published-date">
<h5>Published on</h5>
<p>
<time class="post-date">{{date format='MMMM Do, YYYY'}}</time>
</p>
</section>
</div>
</div>
</div>
</div>
</footer>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'chiselgroup';
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>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</article>
</div>
</div>
</div>
</main>
{{/post}}