Latest content
<@_contentList categoryId=category.id containChild=category.containChild pageIndex=pageIndex count=category.pageSize> <#list page.list as a>${a.title}
<#if a.cover?has_content>#if>
${a.description!}
<#assign
start=1
end=page.totalPage
/>
<#if (page.pageIndex-5) gt start>
<#assign start=page.pageIndex-4/>
#if>
<#if (page.pageIndex+5) lt end>
<#assign end=page.pageIndex+4/>
#if>
<#if !page.firstPage>
Previous page
<#else>
Previous page
#if>
<#if start gt 1>
1 ...
#if>
<#list start..end as n>
<#if n=page.pageIndex>
${n}
<#else>
${n}
#if>
#list>
<#if end lt page.totalPage>
... ${page.totalPage}
#if>
<#if !page.lastPage>
Next page
<#else>
Next page
#if>
@_contentList>