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){
             <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>
             @}