forked from qinhua/halo-theme-joe2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ftl
70 lines (70 loc) · 2.81 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="zh-CN">
<#import "template/common/header.ftl" as headInfo>
<@headInfo.head title="首页" type="index"/>
<#import "template/macro/tail.ftl" as tailInfo>
<body>
<div id="Joe">
<#include "template/common/navbar.ftl">
<div class="joe_container joe_main_container page-index${(settings.aside_position=='left')?then(' revert','')}">
<div class="joe_main">
<div class="joe_index">
<#if settings.enable_banner!true>
<#import "template/macro/banner.ftl" as h_banner>
<@h_banner.banner />
</#if>
<#if settings.enable_hot_category!true>
<#import "template/macro/hot_category.ftl" as hp>
<@hp.hot_category />
</#if>
<#import "template/macro/article.ftl" as h_article>
<@h_article.article posts=posts />
</div>
<#if settings.enable_index_list_ajax==false>
<@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="3">
<#if (posts.totalPages == 0)>
<#include "template/macro/empty.ftl">
<@empty type="index" text="${settings.home_empty_text!'暂无文章数据'}" isAsync="true"/>
<#elseif (posts.totalPages == 1)>
<#else>
<ul class="joe_pagination">
<#if pagination.hasPrev>
<li class="prev">
<a href="${pagination.prevPageFullPath!}">
<i class="joe-font joe-icon-prev"></i>
</a>
</li>
</#if>
<#list pagination.rainbowPages as number>
<#if number.isCurrent>
<li class="active">
<a href="${number.fullPath!}">${number.page!}</a>
</li>
<#else>
<li>
<a href="${number.fullPath!}">${number.page!}</a>
</li>
</#if>
</#list>
<#if pagination.hasNext && (pagination.rainbowPages?size gt 0)>
<li class="next">
<a href="${pagination.nextPageFullPath!}">
<i class="joe-font joe-icon-next"></i>
</a>
</li>
</#if>
</ul>
</#if>
</@paginationTag>
<#else>
<div class="joe_load" loading="true">加载中...</div>
</#if>
</div>
<#include "template/common/aside.ftl">
</div>
<#include "template/common/actions.ftl">
<#include "template/common/footer.ftl">
</div>
<@tailInfo.tail type="index"/>
</body>
</html>