Repository navigation
Expand file tree
/
Copy patharticle.html
More file actions
144 lines (140 loc) · 5.79 KB
/
Copy patharticle.html
File metadata and controls
144 lines (140 loc) · 5.79 KB
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
{{define "9IPHP/article.html"}}
<!DOCTYPE html>
<html>
<head>
{{template "head/head" .}}
{{template "head/3rdstatistic" .}}
{{template "head/article" .}}
</head>
{{template "9IPHP/header" .}}
<div id="pjax">
{{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<div class="main wrapper fn-clear">
<div class="content">
<article class="article__item">
<header>
<h2 class="article__title">
{{if .Article.Topped}}
<svg>
<use xlink:href="#icon-perfect"></use>
</svg>
{{end}}
{{.Article.Title}}
</h2>
<div class="article__meta">
{{if gt .UserCount 1}}
<a rel="nofollow"
class="avatar pipe-tooltipped pipe-tooltipped--w"
aria-label="{{.Article.Author.Name}}"
data-src="{{.Article.Author.AvatarURLWithSize 116}}"
href="{{.Article.Author.URL}}">
</a>
{{end}}
<time class="ft-nowrap">
<svg>
<use xlink:href="#icon-date"></use>
</svg>
{{.Article.CreatedAt}}
</time>
|
<span class="ft-nowrap">
<svg><use xlink:href="#icon-view"></use></svg>
{{.Article.ViewCount}} {{$.I18n.View}}
</span>
{{if gt .Article.CommentCount 0}}
|
<a href="{{.Article.URL}}#pipeComments" class="fn-nowrap">
<svg>
<use xlink:href="#icon-cmts"></use>
</svg>
{{.Article.CommentCount}} {{$.I18n.Comment}}
</a>
{{end}}
</div>
</header>
<section class="pipe-content__reset" id="articleContent"
data-author="{{.Article.Author.Name}}">
{{.Article.Content}}
</section>
<div class="article__share fn-clear">
{{range .Article.Tags}}
<a class="tag" rel="tag" href="{{.URL}}">{{.Title}}</a>
{{end}}
<span class="share__btns">
<span class="share__btn share__btn--wechat" data-type="wechat">
<svg><use xlink:href="#wechat"></use></svg>
</span>
<span class="share__btn share__btn--weibo" data-type="weibo">
<svg><use xlink:href="#weibo"></use></svg>
</span>
<span class="share__btn share__btn--twitter" data-type="twitter">
<svg><use xlink:href="#twitter"></use></svg>
</span>
<span class="share__btn share__btn--google" data-type="google">
<svg><use xlink:href="#google"></use></svg>
</span>
<div class="share__code"
data-title="{{.Article.Title}}"
data-blogtitle="{{$.Setting.BasicBlogTitle}}"
data-url="{{.Article.URL}}"
data-avatar="{{.Article.Author.AvatarURLWithSize 128}}"></div>
</span>
</div>
<div class="fn-clear article__more">
{{if .PreviousArticle}}
<a href="{{.PreviousArticle.URL}}"
class="pipe-tooltipped pipe-tooltipped--n first"
rel="prev" aria-label="{{.PreviousArticle.Title}}">
<svg class="near__icon">
<use xlink:href="#icon-chevron-left"></use>
</svg> {{.I18n.PreArticle}}
</a>
{{end}}
{{if .NextArticle}}
<a href="{{.NextArticle.URL}}" rel="next"
class="pipe-tooltipped pipe-tooltipped--n"
aria-label="{{.NextArticle.Title}}">
{{.I18n.NextArticle}}
<svg class="near__icon-last">
<use xlink:href="#icon-chevron-right"></use>
</svg>
</a>
{{end}}
<span class="fn-right">
<a href="javascript:void(0)"
data-title="{{.I18n.Comment}}{{.I18n.Colon}}{{.Article.Title}}"
id="articleCommentBtn"
data-id="{{.Article.ID}}">
<svg>
<use xlink:href="#icon-cmts"></use>
</svg>
{{$.I18n.Comment}}
</a>
{{if .Article.Editable}}
<a href="{{$.Conf.Server}}/admin/articles/post?id={{.Article.ID}}">
<svg>
<use xlink:href="#icon-edit"></use>
</svg>
{{$.I18n.Edit}}
</a>
{{end}}
</span>
</div>
<div class="fn-mg5"></div>
</article>
<div class="comment">
{{template "comment/comments" .}}
</div>
<div>
{{template "9IPHP/module-list" dict "List" .RecommendArticles "Title" .I18n.RecommendArticle "UserCount" 2}}
</div>
{{template "comment/editor" .}}
</div>
{{template "9IPHP/side" .}}
</div>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</div>
{{template "9IPHP/footer" .}}
</html>
{{end}}