forked from itsnydell/moderne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
74 lines (55 loc) · 2.94 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
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
{{! The big featured header }}
<header class="site-page-head">
<div class="verticle">
<a class="blog-title-link" href="{{@blog.url}}">
{{#if @blog.logo}}
<img src="{{@blog.logo}}" alt="Blog Logo">
{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
</a>
</div>
</header>
<main class="content" role="main">
<div class="author-page">
<div class="pane">
<div class="strip">
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
<h2>{{name}}</h2>
<section class="author-body">
<section class="post-author">
<div class="author">
<div class="portrait"><img src="{{image}}" alt="Author"></div>
<section class="bio">
<p>{{bio}}</p>
{{#if location}}<span class="location">{{location}}</span>{{/if}}
{{#if website}}<span class="website"><a href="{{website}}">{{website}}</a></span>{{/if}}
</section>
</div>
</section>
{{/author}}
<section class="author-posts">
<div class="posts strip clearfix">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="post-preview {{post_class}}">
<header class="post-header">
<a href="{{url}}"><h3 class="post-title">{{{title}}}</h3></a>
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{tags seperator=" • " prefix="on "}}</span>
</header>
<section class="post-excerpt">
<p>{{excerpt}}…</p>
</section>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
</section>
</dvi>
</section>
</div>
</div>
</div>
</main>