-
Notifications
You must be signed in to change notification settings - Fork 10
/
links.tmpl
60 lines (57 loc) · 3 KB
/
links.tmpl
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
{{- define "caicai_anatole/links" -}}
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>友情链接 {{.blog_title}}</title>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="renderer" content="webkit"/>
<meta name="author" content="{{ .user.Nickname}}"/>
<meta name="keywords" content="{{ .meta_keywords}}"/>
<meta name="description" content="{{ .meta_description}}"/>
<link rel="alternate" type="application/rss+xml" title="atom 1.0" href="{{ .atom_url}}"/>
{{template "global.head" .}}
{{template "caicai_anatole/module/styles" .}}
</head>
<body x-data="{ postSearchVisible: false }">
{{template "caicai_anatole/module/sidebar" .}}
<div class="main">
{{template "caicai_anatole/module/page-top" .}}
<div class="content">
{{template "caicai_anatole/module/page-heading" (dict "title" "友情链接" "subtitle" "")}}
<div class="post-page">
<div class="post animated fadeInDown">
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{{$links:=listLinks}}
{{if $links}}
{{range $link:=$links }}
<a href="{{$link.URL}}" target="_blank">
<div class="relative rounded border border-gray-300 bg-white px-5 py-4 shadow-sm hover:shadow flex items-center space-x-3 hover:border-gray-400">
{{if $link.Logo}}
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="{{$link.Logo}}"
alt="{{$link.Name}}">
</div>
{{end}}
<div class="flex-1 min-w-0">
<div>
<p class="text-sm font-medium text-gray-900 truncate">{{$link.Name}}</p>
<p class="text-sm text-gray-500 truncate">{{$link.Description}}</p>
</div>
</div>
</div>
</a>
{{end}}
{{end}}
</div>
</div>
</div>
</div>
</div>
{{template "caicai_anatole/module/post-search-modal" .}}
</body>
</html>
{{end}}