forked from starburst1977/readium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
executable file
·75 lines (73 loc) · 4.56 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{{!< default}}
<header class="sidebar" id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div id="site-head-content" class="sidebar__inner">
<section class="sidebar__information">
<div class="sidebar__userimage" style="background-image: url({{@blog.logo}})"></div>
<h1 class="sidebar__information__title">{{@blog.title}}</h1>
<h2 class="sidebar__information__description">{{@blog.description}}</h2>
<footer class="sidebar__information__footer">
<a href="https://twitter.com/haswalt" target="_blank"><i class="fa fa-twitter"></i></a>
<a href="https://github.com/haswalt" target="_blank"><i class="fa fa-github"></i></a>
<a href="http://uk.linkedin.com/in/harrywalter" target="_blank"><i class="fa fa-linkedin"></i></a>
<a href="http://harrywalter.co.uk" target="_blank"><i class="fa fa-user"></i></a>
</footer>
</section>
</div>
</header>
<main class="contentlist" role="main">
<section class="contentlist__inner">
<div class="contentlist__featured">
{{#foreach posts}}
{{#if featured}}
<h4 class="contentlist__headline">Featured</h4>
<article class="contentlist__article {{post_class}} featured" itemscope itemtype="http://schema.org/BlogPosting" role="article">
<header class="post-header">
<div class="contentlist__article__userimage user-image" style="background-image: url(//cdn3.awesomism.co.uk{{author.image}})"></div>
<h2 class="contentlist__article__headline post-title" itemprop="name"><a href="{{url}}" itemprop="url">{{{title}}}</a></h2>
</header>
<div id="img-post-cover" style="display: none; background-image: url('')"></div>
{{content words="0"}}
<section class="contentlist__article__excerpt post-excerpt" itemprop="description">
<p>{{excerpt characters="200"}}… <a href="{{url}}" itemprop="url">Read more.</a></p>
</section>
<span class="contentlist__article__meta post-meta">
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> · <span class="ttr"></span>
{{#if tags}} · {{author.name}} on {{tags}}{{/if}}
</span>
</article>
{{/if}}
{{/foreach}}
</div>
<h4 class="contentlist__headline">Blog Posts</h4>
{{#foreach posts}}
{{#if featured}}
{{else}}
<article class="contentlist__article {{post_class}}" itemscope itemtype="http://schema.org/BlogPosting" role="article">
<header class="post-header">
<div class="contentlist__article__userimage user-image" style="background-image: url(//cdn3.awesomism.co.uk{{author.image}})"></div>
<h2 class="contentlist__article__headline post-title" itemprop="name"><a href="{{url}}" itemprop="url">{{{title}}}</a></h2>
</header>
<section class="contentlist__article__excerpt post-excerpt" itemprop="description">
<p>{{excerpt characters="250"}}…<br><a href="{{url}}" itemprop="url">Read more.</a></p>
</section>
<section class="contentlist__full">
{{body}}
</section>
<span class="contentlist__article__meta post-meta">
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> · <span class="ttr"></span>
{{#if tags}} · {{author.name}} on {{tags}}{{/if}}
</span>
</article>
{{/if}}
{{/foreach}}
<div class="contentlist__pagination">
{{pagination}}
</div>
<footer class="footer site-footer">
<a class="subscribe icons-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
<div class="inner">
<section class="copyright">All content copyright <a href="http://harrywalter.co.uk">Harry Walter</a> © 2013 • All rights reserved.</section>
</div>
</footer>
</section>
</main>