limeng 1 year ago
parent
commit
9167b39bdd
1 changed files with 1 additions and 1 deletions
  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){
             <li><span>${item.inputdate,dateFormat="YYYY-MM-dd"}</span>
                 <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>
             </li>
             @}