forked from zxysilent/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-cate.html
41 lines (41 loc) · 1.85 KB
/
post-cate.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>{{.global.Title}}·{{.Cate.Name}}</title>
<link rel="canonical" href="{{.global.SiteUrl}}/cate/{{.Cate.Name}}" />
{{template "tpl-linker.html" .}}
</head>
<body>
{{template "tpl-naver.html" .}}
<div id="main">
<section id="page-index">
<h1 class="intro">
分类<a href="/cate/{{.Cate.Name}}">
{{.Cate.Intro}}
<!--「{{.Cate.Intro}}」--></a
>下的文章
</h1>
{{ range $k, $v := .CatePosts }}
<article class="post">
<div class="meta">
<div><span class="author">{{$.global.Author}}</span><span>发布于</span><span class="date">{{ date $v.Created "2006-01-02" }}</span></div>
<div class="comment"><a href="/post/{{$v.Path}}.html#comments">comments</a></div>
</div>
<h1 class="title"><a href="/post/{{$v.Path}}.html">{{$v.Title}}</a></h1>
<div class="entry-content">
{{ str2html $v.Summary }}
<p class="more"><a href="/post/{{$v.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="/archives">归档</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>