forked from zxysilent/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-tag.html
36 lines (36 loc) · 1.75 KB
/
post-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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>{{.basic.Title}}·{{.Tag.Name}}</title>
<link rel="canonical" href="{{.basic.SiteUrl}}/tags/{{.Tag.Name}}" />
{{template "tpl-linker.html" .}}
</head>
<body>
{{template "tpl-naver.html" .}}
<div id="main">
<section id="page-index">
<h1 class="intro">标签<a href="/tags/{{.Tag.Name}}">「{{.Tag.Intro}}」</a>下的文章</h1>
{{ range $k, $v := .TagPosts }}
<article class="post">
<div class="meta">
<div><span class="author">{{$.basic.Author}}</span><span>发布于</span><span class="date">{{ unix $v.Post.Created "2006-01-02" }}</span></div>
<div class="comment"><a href="/posts/{{$v.Post.Path}}.html#comments">comments</a></div>
</div>
<h1 class="title"><a href="/posts/{{$v.Post.Path}}.html">{{$v.Post.Title}}</a></h1>
<div class="entry-content">
{{ str2html $v.Post.Summary }}
<p class="more"><a href="/posts/{{$v.Post.Path}}.html">阅读全文»</a></p>
</div>
</article>
{{ end }}
<nav class="pagination">
{{ if ne .Naver.Prev ""}}<a href="{{.Naver.Prev}}" class="prev">«上一页</a>{{end}}
<div class="center"><a href="/tags">标签</a></div>
{{ if ne .Naver.Next ""}}<a href="{{.Naver.Next}}" class="next">下一页 »</a>{{end}}
</nav>
</section>
{{template "tpl-footer.html" .}}
</div>
{{template "tpl-script.html" .}}
</body>
</html>