-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.hbs
executable file
·41 lines (39 loc) · 1.28 KB
/
blog.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
---
layout: page.hbs
title: "Alexey Bondarenko | Personal blog"
---
<main class="articles">
{{#each collections.sortedPosts }}
<article>
<div class="heading">
{{> date this.date}}
<a class="title" href="{{ this.url }}">
{{ this.data.title }}
</a>
</div>
<div class="desc">
{{{ this.data.description }}}
</div>
<div class="info">
</div>
</article>
{{!-- {% else %}
<article>{{ noPostsMessage }} </article> --}}
{{/each}}
{{!-- {% if posts.lastPage > 1 %}
<ul class="pagination">
{% if posts.currentPage > 1 %}
<li><a href="{{ this.page.baseFileName|page({ (pageParam): (posts.currentPage-1) }) }}">← Prev</a></li>
{% endif %}
{% for page in 1..posts.lastPage %}
<li class="{{ posts.currentPage == page ? 'active' : null }}">
<a href="{{ this.page.baseFileName|page({ (pageParam): page }) }}">{{ page }}</a>
</li>
{% endfor %}
{% if posts.lastPage > posts.currentPage %}
<li><a href="{{ this.page.baseFileName|page({ (pageParam): (posts.currentPage+1) }) }}">Next →</a></li>
{% endif %}
</ul>
{% endif %} --}}
<div style="height: 150px"></div>
</main>