-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.hbs
72 lines (68 loc) · 2.05 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
<main class="content">
{{#if (and posts.length (eq pageNum 1) (eq template "index"))}}
{{> fresh-post (head posts)}}
{{/if}}
<div class="container mt-5">
{{> filter-box}}
<div class="row">
{{#if posts.length}}
{{#each (tail posts)}}
{{> post this}}
{{/each}}
{{else}}
{{> no-content}}
{{/if}}
</div>
{{#if nextPage}}
<div class="text-end">
<a class="btn btn-outline-secondary" href="{{blogRoutePrefix}}/page/{{nextPage}}">See more posts</a>
</div>
{{/if}}
</div>
{{> contact subject="Index page"}}
</main>
{{#*inline "fresh-post"}}
<div class="fresh-post">
<div class="container">
<div class="row">
<div class="col-lg-5 order-lg-2">
<div class="fresh-post__img">
<a href="{{this.url}}">
{{> imgix-image src=this.metadata.header_image_url alt=this.title}}
</a>
</div>
</div>
<div class="col-lg-7 order-lg-1">
<div class="fresh-post__content">
<div class="fresh-post__time">
<time datetime="{{this.published_at}}">
{{this.published_at_str}}
</time>
{{#if this.reading_time}}
<span>{{this.reading_time}}</span>
{{/if}}
</div>
<h1 class="fresh-post__title">
<a href="{{this.url}}">
{{this.title}}
</a>
</h1>
<div class="fresh-post__badges post-badges">
{{#if series}}
<a class="serie serie-solid" href="{{series_url}}">
Series: {{series}}
</a>
{{/if}}
{{#each tags}}
<a class="tag tag-solid" href="{{this.url}}">
{{this.key}}
</a>
{{/each}}
</div>
<blockquote cite="{{this.full_url}}" class="fresh-post__excerpt">{{{this.excerpt}}}</blockquote>
</div>
</div>
</div>
</div>
</div>
{{/inline}}