forked from zutrinken/bleak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
52 lines (44 loc) · 1.42 KB
/
author.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
{{!< default}}
{{#author}}
<header id="header" class="header{{#if cover_image}} has-cover{{else}}{{#if @blog.cover_image}} has-cover{{/if}}{{/if}}">
<div class="inner">
<span class="header-title">
{{#if profile_image}}
<figure class="header-image">
<img src="{{profile_image}}" alt="{{name}}" />
</figure>
{{/if}}
<h1 class="header-name">{{name}} <em>{{ ../pagination.total}}</em></h1>
{{#if bio}}
<span class="header-description">{{bio}}</span>
{{/if}}
<span class="header-meta">
{{#if location}}
<span><i class="icon-location"></i> {{location}}</span>
{{/if}}
{{#if website}}
<span><i class="icon-link"></i> <a href="{{website}}">Website</a></span>
{{/if}}
{{#if twitter}}
<span><i class="icon-twitter"></i> <a target="_blank" href="https://twitter.com/{{twitter}}">Twitter</a></span>
{{/if}}
{{#if facebook}}
<span><i class="icon-facebook"></i> <a target="_blank" href="https://facebook.com/{{facebook}}">Facebook</a></span>
{{/if}}
</span>
</span>
</div>
{{#if cover_image}}
<div class="header-cover" style="background-image: url('{{img_url cover_image}}');"></div>
{{else}}
{{#if @blog.cover_image}}
<div class="header-cover" style="background-image: url('{{img_url @blog.cover_image}}');"></div>
{{/if}}
{{/if}}
</header>
{{/author}}
<div id="post-index" class="container">
<main class="content" role="main">
{{> "loop"}}
</main>
</div>