-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
author.hbs
44 lines (39 loc) · 1.69 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
{{!< default}}
<main id="gh-main" class="gh-main gh-canvas">
{{#author}}
<section class="gh-author gh-pagehead">
{{#if profile_image}}
<img class="gh-author-image gh-pagehead-image" src="{{profile_image}}" alt="{{name}}">
{{else}}
<span class="gh-author-icon">{{> icons/avatar}}</span>
{{/if}}
<header class="gh-pagehead-content">
<h1 class="gh-author-name gh-pagehead-title">{{name}}</h1>
{{#if bio}}
<div class="gh-author-bio gh-pagehead-description">{{bio}}</div>
{{/if}}
<div class="gh-author-meta">
{{#if location}}
<span class="gh-author-location">📍 {{location}}</span>
{{/if}}
{{#if website}}
<a class="gh-author-website" href="{{website}}" target="_blank" rel="noopener">{{website}}</a>
{{/if}}
{{#if twitter}}
<a class="gh-author-twitter" href="{{twitter_url}}" target="_blank" rel="noopener">{{> icons/twitter}}</a>
{{/if}}
{{#if facebook}}
<a class="gh-author-facebook" href="{{facebook_url}}" target="_blank" rel="noopener">{{> icons/facebook}}</a>
{{/if}}
</div>
</header>
</section>
<div class="gh-feed">
{{#get "posts" filter="primary_author:{{slug}}" limit="all"}}
{{#foreach posts}}
{{> loop}}
{{/foreach}}
{{/get}}
</div>
{{/author}}
</main>