forked from kreeger/slimpost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
49 lines (44 loc) · 1.57 KB
/
post.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
{{!< default}}
<main id="container" role="main">
{{> header}}
{{> navigation}}
<section class="post-full">
{{#post}}
<article itemscope itemtype="http://schema.org/BlogPosting" role="article" class="{{post_class}}">
<header class="post-header">
<h2 itemprop="name headline" class="post-title">
<a href="{{url}}" itemprop="url">{{{title}}}</a>
</h2>
<div class="post-meta">
<time datetime="{{date format='YYYY-MM-DD'}}" itemprop="datePublished">{{date published_at format="MMMM DD, YYYY"}}</time>
{{#if tags}}
<span class="delimiter">•</span>
{{#tags}}
<span itemprop="keywords">{{name}}</span>{{#unless @last}}, {{/unless}}
{{/tags}}
{{/if}}
</div>
<hr>
</header>
<section itemprop="articleBody" class="post-content">
{{content}}
</section>
<footer class="post-footer">
<div itemscope itemprop="author" itemtype="http://schema.org/Person" class="post-author">
{{#if author.image}}
<img itemprop="image" src="{{author.image}}" alt="{{author.name}}" class="post-author-avatar">
{{/if}}
<div class="post-author-info">
<span itemprop="name">{{author.name}}</span>
{{#if author.bio}}
<p itemprop="description" class="post-author-bio">{{author.bio}}</p>
{{/if}}
</div>
</div>
</footer>
</article>
{{/post}}
{{> comments}}
</section>
{{> footer}}
</main>