-
Notifications
You must be signed in to change notification settings - Fork 36
/
journals.ftl
47 lines (46 loc) · 2.25 KB
/
journals.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<#include "template/layout.ftl">
<#include "template/main/comment.ftl">
<@layout title="${journals_title!'动态'} - ${blog_title!}" canonical="${journals_url!}">
<#if journals.content?? && journals.content?size gt 0>
<#list journals.content as journal>
<div class="card card-content journal">
<p class="journal-date">
<i class="ri-send-plane-line"></i>
<em>${journal.createTime?string('yyyy年MM月dd日 HH:mm:ss')}</em>
</p>
<div class="journal-content fold">
<div data-id="${journal.id?c}" data-target="journals" class="main-content not-toc">${journal.content}</div>
</div>
<div class="journal-operation">
<span class="journal-operation-item">
<a class="like" data-id="${journal.id?c}" data-likes="${(journal.likes!0)?c}"><i
class="ri-heart-3-line"></i><em>${(journal.likes != 0)?string(journal.likes?c,'喜欢')}</em></a>
</span>
<#if enable_comment>
<span class="journal-operation-item">
<a class="comment"><i
class="ri-message-3-line"></i><em><#if journal.commentCount==0>评论<#else>${journal.commentCount}</#if></em></a>
</span>
</#if>
<#if enable_share>
<span class="journal-operation-item">
<a class="share"><i class="ri-share-forward-line"></i><em>分享</em></a>
</span>
</#if>
</div>
<#if enable_comment>
<div class="journal-comment">
<@comment journal.id?c, "journal" />
</div>
</#if>
</div>
</#list>
<#include "template/main/pagination.ftl">
<@pagination method="journals" datas=journals display="${settings.page_number!5}" />
<#else>
<div class="card card-empty">
<i class="ri-inbox-2-fill"></i>
还没有发表过动态,回<a href="${context!}">主页</a>看看吧
</div>
</#if>
</@layout>