/
author.hbs
48 lines (41 loc) · 2.19 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
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
{{! The big featured header }}
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}
<a class="blog-logo" href="{{@blog.url}}">
<img src="{{asset "img/post-logo.png"}}" onmouseover="this.src='{{asset "img/post-logo-hover.png"}}'" onmouseout="this.src='{{asset "img/post-logo.png"}}'" alt="{{@blog.title}}" />
</a>
{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
</nav>
</header>
<section class="author-profile inner">
{{#if image}}
<figure class="author-image">
<div class="img" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></div>
</figure>
{{/if}}
<h1 class="author-title">{{name}}</h1>
{{#if bio}}
<h2 class="author-bio">{{bio}}</h2>
{{/if}}
<div class="author-meta">
{{#if location}}<a href="https://www.google.com/maps/place/Grand+Rapids,+MI/"><span class="author-location icon-location">{{location}}</span></a>{{/if}}
{{#if website}}<a href="{{website}}"><span class="author-link icon-link">{{website}}</span></a>{{/if}}
<span class="author-link"><a href="https://github.com/gibsjose"><i class="fa fa-github"></i> @gibsjose</a></span>
<span class="author-link"><a href="https://twitter.com/gibsjose"><i class="fa fa-twitter"></i> @gibsjose</a></span>
<span class="author-stats"><i class="icon-stats"></i> {{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}</span>
</div>
</section>
{{/author}}
{{! The main content area on the homepage }}
<main class="content" role="main">
{{! The tag below includes the post loop - partials/loop.hbs }}
{{> "loop"}}
</main>