forked from juev/juev-ghost-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
31 lines (29 loc) · 1.38 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
<nav class="main-nav clearfix">
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Блог</a>
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Подписаться</a>
</nav>
<main class="content" role="main">
<article itemscope itemtype="http://schema.org/Article" class="{{post_class}}">
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}{{#contentFor "meta"}}<title>{{title}}</title>
<meta name="description" content="{{excerpt characters="220"}}">{{/contentFor}}
<header class="post-header">
<h1 itemprop="name" class="post-title">{{title}}</h1>
<div class="post-meta">
<time itemprop="datePublished" content="{{date format='YYYY-MM-DD'}}" class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD / MM / YYYY"}}</time> {{tags prefix=" для "}}
</div>
</header>
<div itemprop="articleBody" class="post-content">
{{content}}
</div>
<footer class="post-footer">
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
{{/author}}
</footer>
{{/post}}
</article>
</main>