<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>${site.sitePath!}</loc>
    <lastmod>${.now?date}</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.4</priority>
  </url>
<@cms.categoryList advanced=true queryAll=true parentId=parentId pageSize=500>
    <#list page.list as category>
        <#if !category.onlyUrl>
    <url>
        <loc>${category.url!}</loc>
        <lastmod>${.now?date}</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.3</priority>
    </url>
        </#if>
    </#list>
</@cms.categoryList>
<#assign pageCount=200/>
<#assign maxPageCount=10/>
<@cms.contentList advanced=true status=1 pageIndex=1 pageSize=pageCount orderField='publishDate'>
    <#assign maxPageCount=(page.totalPage gt maxPageCount)?then(maxPageCount,page.totalPage)/>
    <#list 1..maxPageCount as n>
        <@cms.contentList advanced=true status=1 pageIndex=n pageSize=pageCount orderField='publishDate'>
            <#list page.list as content>
                <#if !content.onlyUrl>
    <url>
        <loc>${content.url!}</loc>
        <lastmod>${content.publishDate?date}</lastmod>
        <changefreq>never</changefreq>
        <priority>0.1</priority>
    </url>
                </#if>
            </#list>
        </@cms.contentList>
    </#list>
</@cms.contentList>
</urlset>