Skip to content

Commit

Permalink
[U] 正常格式
Browse files Browse the repository at this point in the history
  • Loading branch information
zxysilent committed May 5, 2021
1 parent 77300e2 commit 61c1407
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion views/tag-post.html
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
<!DOCTYPE html><html lang="zh-CN"><head><title>{{.title}}·{{.Tag.Name}}</title><link rel="canonical" href="{{.site_url}}/tag/{{.Tag.Name}}" />{{template "tpl-linker.html" .}}</head><body>{{template "tpl-naver.html" .}}<div id="main"><section id="page-index"><h1 class="intro">标签<a href="/tag/{{.Tag.Name}}">「{{.Tag.Intro}}」</a>下的文章</h1>{{ range $k, $v := .TagPosts }}<article class="post"><div class="meta"><div><span class="author">zxysilent</span><span>发布于</span><span class="date">{{ date $v.Post.CreateTime "2006-01-02" }}</span></div><div class="comment"><a href="/post/{{$v.Post.Path}}.html#comments">comments</a></div></div><h1 class="title"><a href="/post/{{$v.Post.Path}}.html">{{$v.Post.Title}}</a></h1><div class="entry-content">{{ str2html $v.Post.Summary }}<p class="more"><a href="/post/{{$v.Post.Path}}.html">阅读全文»</a></p></div></article>{{ end }}<nav class="pagination">{{ if ne .Naver.Prev ""}}<a href="{{.Naver.Prev}}" class="prev">&laquo;上一页</a>{{end}}<div class="center"><a href="/tags">标签</a></div>{{ if ne .Naver.Next ""}}<a href="{{.Naver.Next}}" class="next">下一页 &raquo;</a>{{end}}</nav></section>{{template "tpl-footer.html" .}}</body></html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>{{.title}}·{{.Tag.Name}}</title>
<link rel="canonical" href="{{.site_url}}/tag/{{.Tag.Name}}" />
{{template "tpl-linker.html" .}}
</head>
<body>
{{template "tpl-naver.html" .}}
<div id="main">
<section id="page-index">
<h1 class="intro">标签<a href="/tag/{{.Tag.Name}}">「{{.Tag.Intro}}」</a>下的文章</h1>
{{ range $k, $v := .TagPosts }}
<article class="post">
<div class="meta">
<div><span class="author">zxysilent</span><span>发布于</span><span class="date">{{ date $v.Post.CreateTime "2006-01-02" }}</span></div>
<div class="comment"><a href="/post/{{$v.Post.Path}}.html#comments">comments</a></div>
</div>
<h1 class="title"><a href="/post/{{$v.Post.Path}}.html">{{$v.Post.Title}}</a></h1>
<div class="entry-content">
{{ str2html $v.Post.Summary }}
<p class="more"><a href="/post/{{$v.Post.Path}}.html">阅读全文»</a></p>
</div>
</article>
{{ end }}
<nav class="pagination">
{{ if ne .Naver.Prev ""}}<a href="{{.Naver.Prev}}" class="prev">&laquo;上一页</a>{{end}}
<div class="center"><a href="/tags">标签</a></div>
{{ if ne .Naver.Next ""}}<a href="{{.Naver.Next}}" class="next">下一页 &raquo;</a>{{end}}
</nav>
</section>
</div>
{{template "tpl-footer.html" .}}
</body>
</html>

0 comments on commit 61c1407

Please sign in to comment.