forked from ScottSmith95/Decode-for-Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.hbs
46 lines (37 loc) · 1.47 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
{{!< default}}
{{! The main content area }}
<main class="site-content" role="main">
{{#author}}
<section class="author-card author-page-card cf">
{{#if profile_image}}
<figure class="author-image">
<img src="{{profile_image}}" alt="{{name}}'s Image">
</figure>
{{/if}}
<div class="author-meta">
{{#if name}}<a class="author-name" href="{{url}}">{{name}}</a>{{/if}}
{{#if website}}<a href="{{website}}" class="author-website" rel="author">{{t "Website"}}</a>{{/if}}
{{#if location}}<div class="author-location">{{location}}</div>{{/if}}
{{#if bio}}<p class="author-bio">{{{bio}}}</p>{{/if}}
</div>
</section>
{{/author}}
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
{{#if feature_image}}<a href="{{url}}"><img class="post-image" src="{{feature_image}}"></a>{{/if}}
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
<a class="post-meta" href="{{url}}">{{t "Posted on"}} <time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></a>
</header>
<section class="post-excerpt">
<p>{{excerpt}}<a href="{{url}}" class="excerpt-suffix">…</a></p>
</section>
<footer class="post-footer">
<div class="post-tags">{{tags separator=", " prefix="Tagged with: "}}</div>
</footer>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
</main>