<#-- 顶上最近三篇新闻-->
<#list recentlyNewsList as recentlyNews>
<#if recentlyNews_index == 0>
<#else>
${recentlyNews.title}
${recentlyNews.date?string('yyyy-MM-dd')}
${recentlyNews.digest!""}
查看详情
#if>
#list>
<#list columnList as column>
<#if column_index == sort>
${column.columnName}
<#else>
${column.columnName}
#if>
#list>
<#-- 新闻列表-->
<#list newsList as news>
#list>
<#-- 判断是否有上一页-->
<#if (currentPage > 1)>
#if>
<#-- 当前页大于5,显示1和... -->
<#if (currentPage > 5)>
<#assign start=currentPage-2>
1
...
<#else >
<#assign start=1>
#if>
<#-- 显示当前页附近的页-->
<#assign end=currentPage+2>
<#if (end>totalPage)>
<#assign end = totalPage>
#if>
<#list start..end as index>
<#if index == currentPage>
${index}
<#else>
${index}
#if>
#list>
<#-- 到最后一页相差超过5,显示...-->
<#if ((totalPage-currentPage)>5)>
...
${totalPage}
#if>
<#-- 判断是否有下一页-->
<#if (currentPage < totalPage)>
#if>
<#include "./footer.ftl" parse=true encoding="utf-8">