实现调用网站的文章总数:
{pboot@sql sql="select count(id) as total from ay_content"}
文章总数:[sql:total]条
{/pboot@sql}
这个是直接用sql语句统计所有的content id 确定是 如果有些是单页的也会统计在内没有那么高的精准度,但是也足够了。