1. 同在topic目录下, 引入 <#include "topic/comment.ftl">
2. 判断是否包含某字符串 <#if (tproperties?index_of("comment")!=-1)> </#if>
3.substring
${(item.question)?substring(0,20)}...
4.index_of replace
<#if item.htmlurl?index_of(":8001")!=-1>
<a href="${(item.htmlurl?replace(':8001',''))?if_exists}">
<#elseif item.htmlurl?index_of(":8080")!=-1>
<a href="${(item.htmlurl?replace(':8080',''))?if_exists}">
</#if>