-
Notifications
You must be signed in to change notification settings - Fork 154
/
links.ftl
68 lines (68 loc) · 3.9 KB
/
links.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
<!DOCTYPE html>
<html lang="zh-CN">
<#assign title=settings.links_title!'友情链接'>
<#import "template/common/header.ftl" as headInfo>
<@headInfo.head title="${title}" type="links"/>
<#import "template/macro/tail.ftl" as tailInfo>
<body>
<div id="Joe">
<#include "template/common/navbar.ftl">
<div class="joe_container joe_main_container page-links${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>
<#include "template/macro/links_item.ftl">
<#assign logo_default=(settings.links_logo_default?? && settings.links_logo_default!='')?then(settings.links_logo_default, BASE_RES_URL+'/source/img/icon_qiye.png')>
<#assign colors=["#F8D800", "#0396FF", "#EA5455", "#7367F0", "#32CCBC", "#F6416C", "#32B76E", "#9F44D3", "#F55555", "#736EFE", "#E96D71", "#DE4313", "#D939CD", "#4C83FF", "#F072B6", "#C346C2", "#5961F9", "#FD6585", "#5569E8", "#FFC600", "#FA742B", "#5151E5", "#BB4E75", "#FF52E5", "#4DA037", "#15D1E2", "#F067B4", "#F067B4", "#ff9a9e", "#00f2fe", "#4facfe", "#f093fb", "#6fa3ef", "#bc99c4", "#46c47c", "#f9bb3c", "#e8583d", "#f68e5f"]>
<#assign omits=settings.links_omit?trim!''>
<article class="joe_detail__article animated fadeIn">
<h3>友链列表<#if omits == ''><@linkTag method="count"><#if count gt 0><span class="totals">${count!0} 条</span></#if></@linkTag></#if></h3>
<#if settings.links_type?ends_with('group')>
<@linkTag method="${(settings.links_type == 'group')?then('listTeams', 'listTeamsByRandom')}">
<#assign flag = 0>
<#list teams as team>
<#if omits?index_of(team.team) == -1>
<div class="links-group">
<h5>${team.team!}</h5>
<@links_item links=team.links />
</div>
<#else>
<#assign flag++>
</#if>
</#list>
<#if teams?size == 0 || flag == teams?size>
<div class="joe_nodata">${settings.links_empty_text!}</div>
</#if>
</@linkTag>
<#else>
<@linkTag method="${(settings.links_type == 'list')?then('list', 'listByRandom')}">
<#assign nextRandom = .now?string["HHmmssSSS"]?number>
<@links_item links=links />
</@linkTag>
</#if>
</article>
<article class="joe_detail__article animated fadeIn">
<h3>申请格式</h3>
<div class="link-requirement">
<p>
<#assign logo_url = blog_url + '/logo'>
<joe-message type="info" content='<em style="font-style:normal;font-weight:bold;">< 博客名称 + 博客地址 + 博客Logo + 博客简介 ></em><br>博客名称:${blog_title!}<br>博客地址:<a href="${blog_url!}">${blog_url!}</a><br>博客Logo:<a href="${logo_url!!}">${logo_url!}</a><br>博客简介:${(meta_description?? && meta_description!="")?then(meta_description,"这是一个非常牛逼的博客")}<br>(大家在留言栏目中留言即可)'></joe-message>
</p>
</div>
</article>
</div>
<#-- 目前友链页无法评论 -->
<#-- <div class="joe_comment">
<@global.comment target=links type="links" />
</div> -->
</div>
<#if settings.enable_links_aside!false>
<#include "template/common/aside.ftl">
</#if>
</div>
<#include "template/common/actions.ftl">
<#include "template/common/footer.ftl">
</div>
<@tailInfo.tail type="links"/>
</body>
</html>