forked from zutrinken/attila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
91 lines (82 loc) · 2.89 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{{!< default}}
{{#author}}
<header id="blog-header"{{#if cover_image}} class="has-cover"{{else}}{{#if @site.cover_image}} class="has-cover"{{/if}}{{/if}}>
<div class="inner">
<nav id="navigation">
{{#if @site.logo}}
<span class="blog-logo">
<a href="{{@site.url}}"><img src="{{@site.logo}}" alt="{{t "Blog Logo"}}" /></a>
</span>
{{else}}
<span id="home-button" class="nav-button">
<a class="home-button" href="{{@site.url}}" title="{{t "Home"}}"><i class="ic ic-arrow-left"></i> {{t "Home"}}</a>
</span>
{{/if}}
{{#if @site.navigation}}
<span id="menu-button" class="nav-button">
<a class="menu-button"><i class="ic ic-menu"></i> {{t "Menu"}}</a>
</span>
{{/if}}
</nav>
{{#if cover_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url cover_image size="s"}} 320w,
{{img_url cover_image size="m"}} 640w,
{{img_url cover_image size="l"}} 960w,
{{img_url cover_image size="xl"}} 1920w"
src="{{img_url cover_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{else}}
{{#if @site.cover_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url @site.cover_image size="s"}} 320w,
{{img_url @site.cover_image size="m"}} 640w,
{{img_url @site.cover_image size="l"}} 960w,
{{img_url @site.cover_image size="xl"}} 1920w"
src="{{img_url @site.cover_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{/if}}
{{/if}}
</div>
</header>
<section id="blog-author"{{#if cover_image}} class="has-cover"{{else}}{{#if @site.cover_image}} class="has-cover"{{/if}}{{/if}}>
<div class="inner">
<aside class="post-author">
<figure class="post-author-avatar avatar">
{{#if profile_image}}
<img src="{{profile_image}}" alt="{{name}}" />
{{/if}}
</figure>
<div class="post-author-bio">
<h2 class="post-author-name">{{name}}</h2>
{{#if bio}}
<p class="post-author-about">{{{bio}}}</p>
{{/if}}
<span class="post-author-stats"><i class="ic ic-pencil"></i> {{plural ../pagination.total empty=(t "No Posts") singular=(t "% Post") plural=(t "% Posts")}}</span>
{{#if location}}
<span class="post-author-location"><i class="ic ic-location"></i> {{location}}</span>
{{/if}}
{{#if website}}
<span class="post-author-website"><i class="ic ic-link"></i> <a href="{{website}}">{{t "Website"}}</a></span>
{{/if}}
{{#if twitter}}
<span class="post-author-twitter"><i class="ic ic-twitter"></i> <a target="_blank" href="{{twitter_url}}">Twitter</a></span>
{{/if}}
{{#if facebook}}
<span class="post-author-facebook"><i class="ic ic-facebook"></i> <a target="_blank" href="{{facebook_url}}">Facebook</a></span>
{{/if}}
</div>
<div class="clear"></div>
</aside>
</div>
</section>
{{/author}}
<div id="index" class="container">
<main class="content" role="main">
{{> "loop"}}
</main>
</div>