-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathauthor.hbs
72 lines (58 loc) · 3.43 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
72
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
{{#author}}
{{!-- custom Styles For tag <body> --}}
{{#contentFor "special_body_class"}}is-author has-cover is-head-transparent{{/contentFor}}
{{!-- Author content --}}
<div class="simply-hero-cover author shadow flex items-center justify-center relative min-h-lg py-24 bg-dark">
{{!-- Featured Media - partials/components/media-cover.hbs --}}
{{> "components/media-cover" background=cover_image has_gradient=true alt_title=name}}
<article class="container relative flex flex-col text-center z-3 pt-16">
{{!-- Author name --}}
<h1 class="cover-title text-4xl lg:text-5xl my-5 text-white">{{name}}</h1>
{{!-- Author avatar --}}
<figure class="author-avatar relative mx-auto -order-1">
<img class="w-52 h-52 rounded-full object-cover"
src="{{#if profile_image}}{{img_url profile_image size="s"}}{{else}}{{asset "images/avatar.png"}}{{/if}}"
alt="{{t "Hi I'm"}} {{name}}"
/>
</figure>
{{!-- author biography --}}
{{#if bio}}<p class="cover-des mx-auto mb-8 text-xl text-white max-w-3xl">{{bio}}</p>{{/if}}
{{!-- Author (Location - website - RSS) --}}
<div class="author-meta buttons justify-center">
{{#if location}}
<span class="author-location button bg-transparent opacity-70 hover:opacity-100 hover:text-white hover:bg-transparent text-white">
<svg class="icon is-stroke"><use xlink:href="#icon-map"></use></svg>
<span>{{location}}</span>
</span>
{{/if}}
{{#if website}}
<a href="{{website}}" class="author-link button bg-transparent opacity-70 hover:opacity-100 hover:text-white hover:bg-transparent text-white" target="_blank" rel="noopener noreferrer">
<svg class="icon is-stroke"><use xlink:href="#icon-link"></use></svg>
<span>{{website}}</span>
</a>
{{/if}}
<a href="https://feedly.com/i/subscription/feed/{{url absolute="true"}}rss/" class="author-stats button bg-transparent opacity-70 hover:opacity-100 hover:text-white hover:bg-transparent text-white" target="_blank" rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-rss"></use></svg>
<span>{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}</span>
</a>
</div>
{{!-- Author Facebook and Twitter --}}
<div class="author-follow buttons justify-center mt-8">
{{#if facebook}}
<a href="{{facebook_url}}" title="Facebook" class="button text-white bg-transparent hover:text-white hover:bg-transparent" target="_blank" rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-facebook"></use></svg>
</a>
{{/if}}
{{#if twitter}}
<a href="{{twitter_url}}" title="{{twitter}}" class="button text-white bg-transparent hover:text-white hover:bg-transparent" target="_blank" rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-twitter"></use></svg>
</a>
{{/if}}
</div>
</article>
</div>
{{/author}}
{{!-- The tag below includes the post loop - partials/loop.hbs --}}
{{>"loop"}}