forked from Leafpub/attila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
125 lines (109 loc) · 3.95 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
{{> header}}
{{#post}}
<div class="progress-container">
<span class="progress-bar"></span>
</div>
<header id="post-header"{{#if image}} class="has-cover" {{/if}}>
<div class="inner">
<nav id="navigation">
{{#if @settings.logo}}
<span class="blog-logo">
<a href="{{url}}"><img src="{{url @settings.logo}}" alt="Blog Logo" /></a>
</span>
{{else}}
<span id="home-button" class="nav-button">
<a class="home-button" href="{{url}}" title="Home"><i class="ic ic-arrow-left"></i> Home</a>
</span>
{{/if}}
{{#if @settings.navigation}}
<span id="menu-button" class="nav-button">
<a class="menu-button"><i class="ic ic-menu"></i> Menu</a>
</span>
{{/if}}
</nav>
<h1 class="post-title">{{title editable="true"}}</h1>
<span class="post-meta">
{{#author}}
<a href="{{author_url}}">{{name}}</a> |
{{/author}}
<time datetime="{{date format='YYYY-MM-DD'}}">
{{date format="%d %b %Y"}}
</time> |
{{reading_time}} min read
</span>
{{#if image}}<div class="post-cover cover" style="background-image: url('{{image}}');"></div>{{/if}}
</div>
</header>
<main class="content" role="main">
<article class="{{post_class}}">
<div class="inner">
<section class="post-content">
{{content editable="true"}}
</section>
<section class="post-info">
<div class="post-share">
<a class="twitter" href="https://twitter.com/share?text={{title editable="false"}}&url={{url absolute="true"}}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="ic ic-twitter"></i><span class="hidden">Twitter</span>
</a>
<a class="facebook" 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="ic ic-facebook"></i><span class="hidden">Facebook</span>
</a>
<a class="googleplus" 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="ic ic-googleplus"></i><span class="hidden">Google+</span>
</a>
<div class="clear"></div>
</div>
<aside class="post-tags">
{{tags separator=" "}}
</aside>
<div class="clear"></div>
{{#author}}
<aside class="post-author">
{{#if avatar}}
<figure class="post-author-avatar">
<a href="{{author_url}}"><img src="{{url avatar}}" alt="{{name}}" /></a>
</figure>
{{/if}}
<div class="post-author-bio">
<h4 class="post-author-name"><a href="{{author_url}}">{{name}}</a></h4>
{{#if bio}}
<p class="post-author-about">{{bio}}</p>
{{/if}}
{{#if location}}
<span class="post-author-location"><i class="ic ic-location"></i> {{location}}</span>
{{/if}}
{{#if website}}
<span class="post-author-website"><a href="{{website}}"><i class="ic ic-link"></i> Website</a></span>
{{/if}}
</div>
<div class="clear"></div>
</aside>
{{/author}}
</section>
{{!-- <section class="post-comments"></section> --}}
<aside class="post-nav">
{{#next_post}}
<a class="post-nav-next" href="{{post_url}}">
<section class="post-nav-teaser">
<i class="ic ic-arrow-left"></i>
<h2 class="post-nav-title">{{title}}</h2>
<p class="post-nav-excerpt">{{excerpt words="12"}}…</p>
</section>
</a>
{{/next_post}}
{{#previous_post}}
<a class="post-nav-prev" href="{{post_url}}">
<section class="post-nav-teaser">
<i class="ic ic-arrow-right"></i>
<h2 class="post-nav-title">{{title}}</h2>
<p class="post-nav-excerpt">{{excerpt words="12"}}…</p>
</section>
</a>
{{/previous_post}}
<div class="clear"></div>
</aside>
</div>
</article>
</main>
{{/post}}
{{> footer}}