-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.hbs
57 lines (43 loc) · 2.15 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
56
{{!< 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}}">
{{#if image}}
<a href="{{url}}"><img src="{{image}}"></a>
{{/if}}
<div>
<header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> </span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<section class="post-excerpt">
<p>{{excerpt characters="400"}}…</p>
</section>
<a class="button read-more right small" href="{{url}}">Read more</a>
{{#if tags}}
<aside class="tags fi-pricetag-multiple">{{tags prefix="Posted on "}}</aside>
{{else}}
<aside class="tags fi-pricetag-multiple">No tag</aside>
{{/if}}
<div class="clearfix"></div>
</div>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
<div class="row">
<footer class="small-16 columns site-footer">
<!-- <a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a> -->
<div class="inner">
<section class="published">Proudly published with <a href="http://ghost.org" target="_blank">Ghost</a></section>
<section class="copyright">All content copyright <a href="{{@blog.url}}/">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
<section class="theme-author">Theme (<a href="https://github.com/twogrey/ichi">download here</a>) developed by <a href="http://alexisdegryse.fr">Alexis Degryse</a></section>
</div>
</footer>
</div>
</main>