解决最近评论数量问题
This commit is contained in:
parent
f155a759a0
commit
89881bfcb4
|
@ -5,7 +5,7 @@
|
|||
<div class="item-headline"><i class="haofont hao-icon-comments"></i><span>最新评论</span></div>
|
||||
<div class="aside-list" id="newcomm">
|
||||
<th:block th:if="${#strings.equals(theme.config.comments.use, 'commentWidget') }"
|
||||
th:with="newcommentnumber = ${theme.config.sidebar.newcommentnumbernewcommentnumber > 0 ? theme.config.sidebar.newcommentnumber : 5}">
|
||||
th:with="newcommentnumber = ${#conversions.convert(theme.config.sidebar.newcommentnumber, 'java.lang.Integer') >= 0 ? theme.config.sidebar.newcommentnumber : 5}">
|
||||
<div th:each="comment,iterStat : ${commentFinder.list(null, 1, newcommentnumber)}" class="aside-list-item"
|
||||
th:with="page = ${comment.spec.subjectRef.kind == 'Post' ? postFinder.getByName(comment.spec.subjectRef.name) :
|
||||
comment.spec.subjectRef.kind == 'SinglePage' && not #strings.contains('photos,links,moments', comment.spec.subjectRef.name) ? singlePageFinder.getByName(comment.spec.subjectRef.name) : null},
|
||||
|
|
Loading…
Reference in New Issue