limeng пре 1 година
родитељ
комит
9167b39bdd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/templates/www/xczxw/listBySouSuo.html

+ 1 - 1
src/main/resources/templates/www/xczxw/listBySouSuo.html

@@ -12,7 +12,7 @@
             @for(item in model.list){
             @for(item in model.list){
             <li><span>${item.inputdate,dateFormat="YYYY-MM-dd"}</span>
             <li><span>${item.inputdate,dateFormat="YYYY-MM-dd"}</span>
                 <a href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html">
                 <a href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html">
-                    ${reg.replace(item.title!,"</br>","")}
+                    ${reg.replace(strutil.length(item.title)>60?strutil.subStringTo(item.title,0,60)+'...':item.title,"</br>","")}
                 </a>
                 </a>
             </li>
             </li>
             @}
             @}