forked from thoughtbot/ghost-theme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.hbs
43 lines (41 loc) · 872 Bytes
/
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
{{!< default}}
{{#author}}
<header
{{#if cover_image}}
style="background-image: url({{cover_image}})"
{{else if @blog.cover_image}}
style="background-image: url({{@blog.cover_image}}"
{{/if}}>
{{#if profile_image}}
<figure>
<img src="{{profile_image}}" alt="{{{t '{name}’s Picture' name=name }}}">
</figure>
{{/if}}
<h1>
{{name}}
</h1>
<p>
{{bio}}
</p>
<ul>
<li>
{{#if location}}
{{location}}
{{/if}}
</li>
<li>
{{#if website}}
<a href="{{website}}">
{{website}}
</a>
{{/if}}
</li>
<li>
{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}
</li>
</ul>
</header>
{{/author}}
<main role="main">
{{> "loop"}}
</main>