forked from dhjddcn/halo-theme-butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
journals.ftl
65 lines (62 loc) · 2.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<#include "template/layout.ftl">
<#include "template/common/empty.ftl">
<@layout
title="${settings.journals_title!}"
type="journals"
top_background_img="${settings.top_journals_background_img!}"
enable_aside=settings.enable_journals_aside
>
<script src="${theme_base!}/source/lib/[email protected]/vue.min.js"></script>
<#if journals.content?? && journals.content?size gt 0>
<#-- <#list journals.content as journal>
<div class="by_journal_item">
<time datetime="${journal.createTime?string('yyyy-MM-dd')}"
class="by_journal_item_meta">${journal.createTime?string('yyyy-MM-dd')}</time>
<div class="by_journal_item_content"> ${journal.content!}</div>
</div>
</#list> -->
<ul class="by_journals">
<#list journals.content as journal>
<li class="by_journal_item" data-cid="${journal.id?c}">
<div class="by_journal_header">
<img class="by_journal_avatar" src="${user.avatar!}" alt="${user.nickname!}">
<div class="by_journal_info">
<div class="by_journal_nick">
${user.nickname!}
</div>
<div class="by_journal_time">
${journal.createTime?string("yyyy-MM-dd HH:mm")}
</div>
</div>
</div>
<div class="by_journal_meta">
<div class="by_journal_content">
${journal.content!}
</div>
<div class="by_journal_footer">
<div class="by_journal_likes">
<i class="by-font by_icon_xihuan-fill"></i>
<i class="by-font by_icon_xihuan"></i>
<span data-journal-id-likes="${journal.id?c}">${journal.likes!0}</span>
</div>
<div class="by_journal_comment">
<i class="by-font by_icon_message"></i>
${journal.commentCount!0}
</div>
</div>
<div class="by_journal_comments">
<#if settings.journals_comment!false>
<#include "template/common/comments.ftl">
<@comment journal,'journal' />
<#else>
<span>博主关闭了评论功能</span>
</#if>
</div>
</div>
</li>
</#list>
</ul>
<#else>
<@empty showBg = false/>
</#if>
</@layout>