forked from xzhuz/halo-theme-xue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
links.ftl
58 lines (58 loc) · 2.67 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
<#include "module/macro.ftl">
<@layout title="${settings.links_title!'友情链接'} | ${options.blog_title!}">
<main class="mx-auto" id="container">
<header class="bg-cover post-cover">
<#if settings.links_patternimg?? && settings.links_patternimg!=''>
<div class="cover-bg">
<img src="${settings.links_patternimg!}" class="z-auto"
alt="${settings.links_title!'友情链接'}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="cover-content flex justify-center">
<!-- 封面内容 -->
<div class="inner flex flex-col justify-center">
<p class="cover-title text-base md:text-4xl lg:text-4xl xl:text-5xl">${settings.links_title!'友情链接'}</p>
</div>
</div>
</header>
<div
class="container mx-auto px-4 mt-16 max-w-6xl tracking-wider md:leading-relaxed sm:leading-normal ct-container cn-pd content-container">
<@linkTag method="listTeams">
<#list teams as item>
<#if item.team?? && item.team!=''>
<h2 class="w-full m-4 text-3xl">${item.team}</h2>
</#if>
<div class="flex flex-row flex-wrap grid lg:grid-cols-3 md:grid-cols-2">
<#list item.links?sort_by('priority')?reverse as link>
<a class="lk-card-im card-item-vel block" href="${link.url}" target="_blank"
onfocus="this.blur();">
<div class="media">
<div class="media-left">
<figure class="image is-64x64">
<#if link.logo?? && link.logo != ''>
<img src="${link.logo}" alt="${link.name}">
<#elseif settings.links_placeholder?? && settings.links_placeholder != ''>
<img src="${settings.links_placeholder}"
alt="${link.name}">
<#else>
<img src="https://cdn.jsdelivr.net/gh/xzzai/[email protected]/placeholder.jpg"
alt="${link.name}">
</#if>
</figure>
</div>
<div class="media-content">
<p class="lk-title">${link.name}</p>
<p class="lk-desc">${link.description}</p>
</div>
</div>
</a>
</#list>
</div>
</#list>
</@linkTag>
</div>
</main>
</@layout>