-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauthor.hbs
71 lines (62 loc) · 3 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- The main content area --}}
<div class="container mt-5 mb-5">
<div class="row-wrapper">
{{> "sidebar"}}
<article class="col main-content">
<div class="main-content-body">
<div class="docs-box">
{{#author}}
<div class="author-header-content">
{{#if cover_image}}
<div class="author-cover-image" style="background-image: url({{cover_image}});"></div>
{{/if}}
<div class="author-profile" {{#if cover_image}} style="padding-top: 0px;" {{/if}}>
{{#if profile_image}}
<img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" {{#if cover_image}} style="margin-top: -30px;" {{/if}} />
{{/if}}
<h1 class="site-title">{{name}}</h1>
{{#if bio}}
<h2 class="author-bio">{{bio}}</h2>
{{/if}}
<div class="author-meta">
{{#if location}}
<div class="author-location">{{location}} <span class="bull">•</span></div>
{{/if}}
<div class="author-stats">
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} <span class="bull">•</span>
</div>
{{#if website}}
<a class="social-link social-link-wb" href="{{website}}" target="_blank" rel="noopener"><span class="fas fa-globe"></span></a>
{{/if}}
{{#if twitter}}
<a class="social-link social-link-tw" href="{{twitter_url}}" target="_blank" rel="noopener"><span class="fab"><svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg></span></a>
{{/if}}
{{#if facebook}}
<a class="social-link social-link-fb" href="{{facebook_url}}" target="_blank" rel="noopener"><span class="fab fa-facebook-f"></span></a>
{{/if}}
<a class="social-link social-link-rss" href="{{url absolute="true"}}rss/" target="_blank" rel="noopener"><span class="fas fa-rss"></span></a>
</div>
</div>
</div>
{{/author}}
<div class="post-feed">
{{#if posts}}
{{#foreach posts}}
<div class="post">
<a class="post-title" href="{{ url }}">{{title}}</a>
<p>{{excerpt}} ...</p>
</div>
{{/foreach}}
{{pagination}}
{{else}}
<p class="mb-0">No posts.</p>
{{/if}}
</div>
</div>
</div>
</article>
</div>
</div>