-
Notifications
You must be signed in to change notification settings - Fork 153
/
journals.ftl
97 lines (97 loc) · 6.32 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="zh-CN">
<#assign title=settings.journals_title!'我的动态'>
<#import "template/common/header.ftl" as headInfo>
<@headInfo.head title="${title}" type="journals"/>
<#import "template/macro/tail.ftl" as tailInfo>
<#include "template/macro/loading.ftl">
<body>
<div id="Joe">
<#include "template/common/navbar.ftl">
<div class="joe_container joe_main_container page-journals${settings.enable_show_in_up?then(' animated showInUp','')}${(settings.aside_position=='left')?then(' revert','')}">
<div class="joe_main">
<div class="joe_detail">
<h1 class="joe_detail__title txt-shadow">${title}</h1>
<#if settings.enable_journal_add!false>
<a class="joe_journal_add" href="${blog_url+'/admin/index.html#/sheets/journals'}" target="_blank" rel="nofollow"><i class="joe-font joe-icon-edit"></i></a>
</#if>
<div class="joe_detail__count">
<div class="joe_detail__count-information">
<img width="35" height="35" class="avatar lazyload" data-src="${USER_AVATAR}" src="${settings.lazyload_avatar!}" onerror="Joe.errorImg(this)" alt="${user.nickname!}">
<div class="meta">
<div class="author">
<a class="link" href="${blog_url}/s/about" title="${user.nickname!}">${user.nickname!}</a>
</div>
<div class="item">
<#-- <span class="text">${journals.total!0} 条动态</span> -->
<span class="text">${(settings.motto?? && settings.motto!='')?then(settings.motto, user.description!'一句话介绍自己吧!')}</span>
<#if settings.check_baidu_collect!false>
<span class="line">/</span>
<#include "template/module/baidu_push.ftl">
</#if>
</div>
</div>
</div>
</div>
<@loading type="journals" />
<#if journals.content?size gt 0>
<ul class="joe_journals__list hidden${settings.enable_journal_effect?then(' effects','')}">
<#list journals.content as journal>
<li class="joe_journal__item animated wow" data-wow-delay="0.${journal_index}s" data-cid="${journal.id?c}" data-clikes="${journal.likes}">
<p class="joe_journal_date">
<i class="joe-font joe-icon-feather"></i>
<em class="joe_journal-posttime">${journal.createTime?string('yyyy/MM/dd HH:mm:ss')}</em>
</p>
<div class="joe_journal_block">
<div class="joe_journal_body${(settings.enable_code_line_number==true && settings.enable_code_newline!=true)?then(' line-numbers','')}" style="max-height:${settings.journal_block_height!300}px">
<div class="content-wrp">${journal.content!}</div>
<span class="joe_journal_operate_item journal_content_expander"><i class="joe-font joe-icon-arrow-down"></i></span>
</div>
<#if settings.enable_like_journal || settings.enable_comment_journal>
<div class="joe_journal_footer">
<div class="footer-wrap">
<#if settings.enable_like_journal!true>
<span class="joe_journal_operate_item like">
<i class="joe-font joe-icon-xihuan journal-like"></i>
<i class="joe-font joe-icon-xihuan-fill journal-unlike"></i>
<em class="journal-likes-num">${journal.likes!0}</em>
</span>
</#if>
<#if settings.enable_clean_mode!=true && settings.enable_comment_journal==true>
<span class="joe_journal_operate_item comment"><i class="joe-font joe-icon-message journal-comment"></i><em>${journal.commentCount!0}</em></span>
<#if journal.commentCount gt 0>
<span class="joe_journal_operate_item journal_comment_expander"><em class="journal_comment_expander_txt">查看评论</em><i class="joe-font joe-icon-arrow-downb"></i></span>
</#if>
</#if>
<#if settings.enable_clean_mode!=true && settings.enable_comment_journal==true>
<div class="joe_journal_comment">
<#assign sys_options = '{"blog_logo": "${options.blog_logo!}", "gravatar_source": "${options.gravatar_source!}", "comment_gravatar_default": "${options.comment_gravatar_default!}"}'>
<#assign configs = '{"size": "small", "autoLoad": false, "showUserAgent": "${settings.enable_comment_ua?string}", "gravatarSource": "${settings.gravatar_source!}", "loadingStyle": "${settings.comment_loading_style!}", "authorPopup": "${settings.comment_author_poptext!}", "emailPopup": "${settings.comment_email_poptext!}", "aWord": "${settings.comment_aword!}", "avatarLoading": "${settings.comment_avatar_loading!}", "avatarError": "${settings.comment_avatar_error!}", "notComment": "${settings.comment_empty_text!}"}'>
<halo-comment id="${journal.id?c}" type="journal" configs='${configs}' options='${sys_options}'/>
</div>
</#if>
</div>
</div>
</#if>
</div>
</li>
</#list>
</ul>
<#include "template/common/pager.ftl">
<@pager method="journals" postsData=journals display="${settings.max_pager_number!5}" />
<#else>
<#include "template/macro/empty.ftl">
<@empty type="journals" text="${settings.journals_empty_text!'暂无日志数据'}"/>
</#if>
</div>
</div>
<#if settings.enable_journals_aside!true>
<#include "template/common/aside.ftl">
</#if>
</div>
<#include "template/common/actions.ftl">
<#include "template/common/footer.ftl">
</div>
<@tailInfo.tail type="journals"/>
</body>
</html>