<#assign ids=(id!'-')?split('-')/> <@_category id=ids[0] containsAttribute=true> <#assign category=object url='?id=${id}' /> <#if ids[1]=getHash(category.code+category.id)?string> ${(category.name)!}

${(site.name)!}

<#if category?has_content>

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>${a.title} ${a.description!}

<#assign start=1 end=page.totalPage /> <#if (page.pageIndex-5) gt start> <#assign start=page.pageIndex-4/> <#if (page.pageIndex+5) lt end> <#assign end=page.pageIndex+4/> <#if !page.firstPage> Previous page <#else> Previous page <#if start gt 1> 1 ... <#list start..end as n> <#if n=page.pageIndex> ${n} <#else> ${n} <#if end lt page.totalPage> ... ${page.totalPage} <#if !page.lastPage> Next page <#else> Next page
<#else>

Category does not exist