-
Notifications
You must be signed in to change notification settings - Fork 12
/
author.hbs
45 lines (38 loc) · 1.75 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}}
{{#contentFor "meta"}}
<meta property="og:type" content="website" />
<meta property="og:url" content="{{@blog.url}}" />
<meta property="og:title" content="{{@blog.title}}" />
<meta property="og:site_name" content="{{@blog.title}}" />
{{#if @blog.logo}}<meta property="og:image" content="{{@blog.logo}}" />{{/if}}
<meta property="og:description" content="{{@blog.description}}"/>
<meta property="fb:profile_id" content="<YOUR FACEBOOK ID>" />
<meta property="fb:admins" content="<YOUR FACEBOOK ID>" />
{{/contentFor}}
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
<header class="author-profile">
<div class="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="blog-title">{{name}}</h1>
<h2 class="author-bio">{{bio}}</h2>
<ul class="author-meta">
{{#if location}}<li><i class="icon-globe"></i> {{location}}</li>{{/if}}
{{#if website}}<li><i class="icon-code"></i> <a href="{{website}}">{{website}}</a></li>{{/if}}
<li><i class="icon-pencil"></i> {{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}</span>
</ul>
</div>
</header>
<nav class="main-nav overlay clearfix">
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
</nav>
{{/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>