forked from xdumaine/ghost-aside
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
55 lines (46 loc) · 2.16 KB
/
index.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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! The big featured header on the homepage, with the site logo and description }}
{{! The main content area on the homepage }}
<main class="content" role="main">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}
| <a href="{{url}}#disqus_thread">Comments<a>
</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
{{#if image}}
<div class="post-thumbnail">
<a href="{{url}}"><img src={{image}} /></a>
</div>
{{/if}}
<section class="post-excerpt">
<p>{{excerpt}}…</p>
</section>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
<footer class="site-footer">
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
<div class="inner">
<section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> © 2013 • All rights reserved.</section>
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://ghost.org">Ghost</a></section>
</div>
</footer>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '[your shortname]'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</main>