-
Notifications
You must be signed in to change notification settings - Fork 30
/
post.hbs
executable file
·124 lines (106 loc) · 5.1 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
{{!< 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}}
<span itemscope itemtype="http://schema.org/BlogPosting">
<header class="main-header post-page-header" style="background-image: url({{image}})">
<div class="wrapper">
<div class="grid-container grid-720">
<div class="inner-header">
<span class="table-span">
<span>
<h1 itemprop="name">{{{title}}}</h1>
<ul>
<li class="hide-on-mobile">
{{#author}}
{{#if image}}
<img class="author-image" src="{{image}}" alt="{{name}}">
{{/if}}
<span class="author-info">{{name}}
{{/author}}
{{tags separator=" , " prefix="in "}}</span>
<span class="author-info hide-on-mobile" style="float:right;"> read</span>
<span class="author-info post-reading-time " style="float:right;"></span>
</li>
<li class="hide-on-desktop hide-on-tablet">
{{#author}}
{{#if author.image}}
<img class="author-image" src="{{image}}" alt="{{name}}">
{{/if}}
<span class="author-info">{{name}}
{{/author}}
</span>
<span class="author-info post-reading-time" style="float:right;"></span>
</li>
</ul>
</span>
</span>
</div>
</div>
</div>
</header>
<section id="post-container" role='main' class="main-section hide-post">
<div class="grid-container grid-720">
<article class="post post-page-post" id="{{id}}">
<div class="wrapper">
<section class="post-text" itemprop="articleBody text">
{{content}}
</section>
<section class="post-page-share">
<ul>
<span class="date-posted">
<li><i class="fa fa-calendar-o"></i> <time itemprop="datePublished" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></li>
</span>
<span class="share-icons">
<li class="share-title">Share on:</li>
<li><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;"><i class="fa fa-twitter"></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;"><i class="fa fa-facebook"></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;"><i class="fa fa-google-plus"></i></a></li>
</span>
</ul>
</section>
<footer >
{{#if tags}}
<section class="post-page-tags hide-on-desktop hide-on-tablet">
<small>Tags</small>
<p>{{tags separator=" , "}}</p>
</section>
{{/if}}
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
<section class="post-page-author">
<small>About the author</small>
<div class="author-wrapper" itemprop="author" itemscope itemtype="http://schema.org/Person">
<ul>
{{#if image}}
<li><a href="{{url}}"><img src="{{image}}" alt="{{name}}"></a></li>
<li>
{{else}}
<li style="margin-left:0;" >
{{/if}}
<h3 rel="author" itemprop="url name"><a href="{{url}}">{{name}}</a></h3>
{{#if website}}
<p><i class="fa fa-globe"></i> <a href="{{website}}">Website</a></p>
{{/if}}
{{#if bio}}
<p>{{bio}}</p>
{{else}}
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
{{/if}}
</li>
</ul>
</div>
</section>
{{/author}}
<!--{{> comments}}-->
</footer>
</div>
</article>
</div>
</section>
</span>
{{/post}}