-
-
Notifications
You must be signed in to change notification settings - Fork 211
/
author.hbs
63 lines (53 loc) · 2.86 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
{{!< default}}
{{#author}}
{{!-- custom Styles For tag <body> --}}
{{#contentFor "mapache_class_body"}}is-author{{/contentFor}}
<section class="author container mx-auto mb-10">
<div class="flex flex-col md:flex-row items-center py-10">
<figure class="border-8 flex-none h-56 mr-12 overflow-hidden relative rounded-full shadow-lg w-56">
<img class="image-inset absolute" src="{{#if profile_image}}{{img_url profile_image size="s"}}{{else}}{{asset "images/avatar.png"}}{{/if}}" alt="{{name}}"/>
</figure>
<div class="text-center md:text-left">
<h1 class="leading-none mb-5 text-title text-3xl lg:text-4xl">{{name}}</h1>
{{#if bio}}<p class="mb-5 text-gray-600">{{bio}}</p>{{/if}}
{{!-- Location - website - RSS --}}
<div class="mb-5 text-gray-500">
{{#if location}}<span class="mr-4 block md:inline-block"><svg class="icon is-small"><use xlink:href="#icon-eart"></use></svg> {{location}}</span>{{/if}}
{{#if website}}<a href="{{website}}" class="hover:text-gray-900" target="_blank"><svg class="icon is-small is-stroke"><use xlink:href="#icon-link"></use></svg> <span>{{website}}</span></a>{{/if}}
</div>
{{!-- Facebook and Twitter --}}
<div class="buttons justify-center md:justify-start">
{{#if facebook}}
<a class="button is-outline text-sm hover:bg-facebook hover:text-white hover:border-transparent"
href="{{facebook_url}}"
title="Facebook"
target="_blank"
rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-facebook"></use></svg>
<span>Facebook</span>
</a>
{{/if}}
{{#if twitter}}
<a class="button is-outline text-sm hover:bg-twitter hover:text-white hover:border-transparent"
href="{{twitter_url}}"
title="{{twitter}}"
target="_blank"
rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-twitter"></use></svg>
<span>Twitter</span>
</a>
{{/if}}
<a class="button is-outline text-sm hover:bg-orange hover:text-white hover:border-transparent"
href="{{url absolute="true"}}rss/"
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>
</div>
</div>
</section>
{{/author}}
{{!-- The tag below includes the post loop - partials/loop.hbs --}}
{{>"loop"}}