-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.html
157 lines (155 loc) · 8.32 KB
/
tag.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="${favicon!''}" type="image/x-icon">
<link rel="shortcut icon" href="${favicon!''}" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>${(tag.name)!'标签'} - ${title!''}</title>
<link rel="stylesheet" href="${una}/${theme}/css/font-awesome.css">
<link rel="stylesheet" href="${una}/${theme}/css/ionicons.css">
<link rel="stylesheet" href="${una}/${theme}/css/adminlte.css">
<link rel="stylesheet" href="${una}/${theme}/css/unaboot.css">
</head>
<body>
<div class="sidebar animated fadeInDown">
<#include "./left.html"/>
</div>
<div class="main">
<div class="page-top animated fadeInDown">
<#include "./nav.html"/>
</div>
<div class="autopagerize_page_element">
<div class="content">
<div class="tag-row">
<div class="tag-box m-4">
<span class="hd l">标签:</span>
<div class="bd">
<ul class="">
<#if tag??>
<li class="tag-nav-item">
<a href="${una}/category/tags">全部</a>
</li>
<@u_tags>
<#if results?? && results?size gt 0>
<#list results as t>
<#if t.id == tag.id>
<li class="tag-nav-item on">
<a href="${una}/tag/${t.name}">${t.name}</a>
</li>
<#else>
<li class="tag-nav-item">
<a href="${una}/tag/${t.name}">${t.name}</a>
</li>
</#if>
</#list>
</#if>
</@u_tags>
<#else>
<li class="tag-nav-item on">
<a href="${una}/category/tags">全部</a>
</li>
<@u_tags>
<#if results?? && results?size gt 0>
<#list results as t>
<li class="tag-nav-item">
<a href="${una}/tag/${t.name}">${t.name}</a>
</li>
</#list>
</#if>
</@u_tags>
</#if>
</ul>
</div>
</div>
</div>
<#if tag??>
<@u_tag_page_detail id=tag.id offset=offset>
<#if results?? && results.content?size gt 0>
<#list results.content as post>
<div class="post animated fadeInDown">
<div class="post-title mb-2">
<h3>
<a href="${una}/blog/${post.slug}">${post.title}</a>
</h3>
</div>
<div class="post-content">
<div class="p_part">
<p>${post.summary}</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<i class="fa fa-sun-o"></i>
<span class="date">${post.createTime?string("yyyy-MM-dd HH:mm")}</span>
<i class="fa fa-user-circle-o"></i>
<a href="#">${post.author}</a>
<i class="fa fa-tags"></i>
<@u_post_tags id=post.id>
<#if results?? && results?size gt 0>
<#list results as t>
<a href="${una}/tag/${t.name}" class="tag"> ${t.name}</a>
</#list>
</#if>
</@u_post_tags>
</div>
</div>
</div>
</div>
</#list>
</#if>
</@u_tag_page_detail>
<div class="pagination">
${u_tagPage(una+"/tag/"+tag.name tag.id offset 5 15)}
</div>
<#else>
<@u_post_page_detail type=0 offset=offset size=15>
<#if results?? && results.content?size gt 0>
<#list results.content as post>
<div class="post animated fadeInDown">
<div class="post-title mb-2">
<h3>
<a href="${una}/blog/${post.slug}">${post.title}</a>
</h3>
</div>
<div class="post-content">
<div class="p_part">
<p>${post.summary}</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<i class="fa fa-sun-o"></i>
<span class="date">${post.createTime?string("yyyy-MM-dd HH:mm")}</span>
<i class="fa fa-user-circle-o"></i>
<a href="#">${post.author}</a>
<i class="fa fa-tags"></i>
<#if post.tags?? && post.tags?size gt 0>
<#list post.tags as t>
<a href="${una}/tag/${t.name}" class="tag"> ${t.name}</a>
</#list>
</#if>
</div>
</div>
</div>
</div>
</#list>
</#if>
</@u_post_page_detail>
<div class="pagination">
${u_postPage(una+"/tags" 0 offset 5 15)}
</div>
</#if>
</div>
</div>
</div>
<script src="${una}/${theme}/js/jquery/jquery.min.js"></script>
<script src="${una}/${theme}/js/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="${una}/${theme}/js/adminlte.min.js"></script>
<script type="text/javascript">
</script>
</body>
</html>