forked from losgod/halo-theme-limit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsheet_links.ftl
59 lines (51 loc) · 2.35 KB
/
sheet_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
<#-- Custom Links -->
<#include "module/macro.ftl">
<@layout title="${sheet.title!}-${blog_title!}">
<#-- Top Menu -->
<#include "module/menu.ftl">
<#-- Page Cover -->
<#import "module/cover.ftl" as cover>
<@cover.layout img="${sheet.thumbnail!}" title="${sheet.title}" subtitle="${sheet.summary}" />
<main>
<section id="links" class="container">
<ul class="team">
<@linkTag method="listTeams">
<#list teams as team>
<li>
<#if team.team?? && team.team!="">
<h3 class="teamTitle">${team.team}</h3>
</#if>
<ul class="links">
<#list team.links?sort_by('priority')?reverse as link>
<li>
<a href="${link.url!}">
<div class="logo">
<#if link.logo?? && link.logo != "">
<img src="${link.logo}" alt="${link.name!}">
<#else >
<img src="${settings.default_avatar}" alt="${link.name!}">
</#if>
</div>
<div class="content">
<span class="name">${link.name!}</span>
<span class="desc">${(link.description?? && link.description != "")?string(link.description,"暂无描述")}</span>
</div>
</a>
</li>
</#list>
</ul>
</li>
</#list>
</@linkTag>
</ul>
</section>
<section id="write" class="container markdown">
${sheet.formatContent}
</section>
<#include "module/comment.ftl">
<@comment sheet,"sheet" />
</main>
<#-- Page Footer -->
<#include "module/footer.ftl">
<#include "module/script.ftl">
</@layout>