-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.ftl
executable file
·53 lines (45 loc) · 1.66 KB
/
index.ftl
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
<#include "layout/_layout.ftl">
<#include "layout/_macro/post.ftl">
<#include "layout/_macro/sidebar.ftl">
<@html title="${blog_title!}" ogtype="website" url="${blog_url!}"></@html>
<@main>
<div id="content" class="content">
<section id="posts" class="posts-expand">
<#if posts??>
<#list posts.content as post>
<@post_template post></@post_template>
</#list>
</#if>
</section>
<#if posts.totalPages gt 1>
<nav class="pagination">
<@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="3">
<#if pagination.hasPrev>
<a class="extend prev" rel="prev" href="${pagination.prevPageFullPath!}">
<i class="fa fa-angle-left" aria-label="Previous page"></i>
</a>
</#if>
<#list pagination.rainbowPages as number>
<#if number.isCurrent>
<span class="page-number current">${number.page!}</span>
<#else>
<a class="page-number" href="${number.fullPath!}">${number.page!}</a>
</#if>
</#list>
<#if pagination.hasNext>
<a class="extend next" rel="next" href="${pagination.nextPageFullPath!}">
<i class="fa fa-angle-right" aria-label="Next page"></i>
</a>
</#if>
</@paginationTag>
</nav>
</#if>
</div>
</@main>
<@sidebar>
<@sidebar_template is_post=false></@sidebar_template>
</@sidebar>
<@footer>
</@footer>
<@button>
</@button>