-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
post.hbs
121 lines (102 loc) · 4.93 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
{{!< default}}
{{#post}}
{{#if feature_image}}
<div id="feature_image">
<div class="inner" style="background-image: url('{{img_url feature_image}}')">
<img src="{{feature_img}}">
</div>
</div>
{{/if}}
<article role="main" class="{{#if feature_image}}image{{/if}}">
<header>
<a href="{{@site.url}}" id="home_link">«</a>
<div class="meta"><time datetime="{{date format='YYYY-MM-DD'}}"><a href="{{url}}">{{date format="MMMM DD, YYYY"}}</a></time> <span class="count" id="js-reading-time"></span></div>
<h1>{{title}}</h1>
</header>
<div class="text" id="js-post-content">
{{content}}
</div>
<menu>
<a href="" id="btn_share" class="btn" title="Share">
<span aria-hidden="true" data-icon="S"></span>
<strong>Share</strong>
</a>
<a href="http://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" id="btn_comment" class="btn" target="_blank">
<span aria-hidden="true" data-icon="C"></span> Comment on Twitter
</a>
</menu>
{{#primary_author}}
<footer class="post-footer" role="contentinfo">
<div class="vcard">
<a href="{{@site.url}}/rss" id="btn_feed" class="btn" title="Feed" target="_blank">
<span aria-hidden="true" data-icon=")"></span>
<strong>Feed</strong>
</a>
{{#if profile_image}}
<a href="{{url}}" class="photo">
<span style="background-image: url('{{img_url profile_image}}');">
<img src="{{profile_image}}" alt="{{name}}">
</span>
</a>
{{/if}}
<div class="details">
<h4><a href="{{url}}" class="url n">{{name}}</a></h4>
{{#if location}}{{location}}<br>{{/if}}
{{#if website}}<a href="{{website}}" class="js-remove-domain-schema">{{website}}</a>{{/if}}
</div>
</div>
<div id="user_bio">
<div class="inner">
{{!-- TODO: Parse HTML for links --}}
{{bio}}
</div>
</div>
</footer>
{{/primary_author}}
</article>
<div id="share_modal">
<div class="wrap">
<div class="inner">
<header>
Share
<a href="" class="close" title="Close">×</a>
</header>
<div class="roon-share-links">
<a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div id="fb-elems">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=463438580397968";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="110" data-show-faces="false" data-font="arial"></div>
</div>
<div id="pinit-btn">
<a href="//pinterest.com/pin/create/button/?url={{url absolute="true"}}&description={{encode title}}-{{encode @site.title}} " data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png"></a>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
</div>
</div>
</div>
</div>
</div>
<div id="post_nav">
<nav role="navigation">
{{#next_post}}
<a href="{{url}}" id="post_next" title="Next Post">
<span aria-hidden="true" data-icon=">"></span>
The Newer Post
</a>
{{/next_post}}
{{#prev_post}}
<a href="{{url}}" id="post_prev" title="Previous Post">
Something Older
<span aria-hidden="true" data-icon=">"></span>
</a>
{{/prev_post}}
</nav>
</div>
{{/post}}