forked from juev/juev-ghost-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
47 lines (43 loc) · 2.25 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
{{!< 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}}
{{! DISQUS }}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'pavelmiroshnichenko'; // required: replace example with your forum shortname
var disqus_identifier = '{{post.id}}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</article>
</main>