-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.ejs
45 lines (45 loc) · 1.47 KB
/
page.ejs
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
<%- include _header %>
<div id="content-wrapper">
<!-- Main content goes here -->
<div class="mui--appbar-height"></div>
<div class="mui-container-fluid mui-col-sm-10 mui-col-sm-offset-1">
<br>
<h1 class="page-title">
<%= page.title %>
<div class="category mui--pull-right">
<span class="label label-primary"><%= page.category %></span>
<% if (config.theme.valine && config.theme.valine.visitor) { %>
<span id="/page<%= page.link %>/" class="leancloud_visitors label label-primary">
<em class="post-meta-item-text">阅读量 </em>
<i class="leancloud-visitors-count">N/A</i>
</span>
<% } %>
<% if (config.theme.page_raw) { %>
<a href="<%= config.theme.page_raw %><%= page.link %>.md" target="_blank"
class="label label-secondary">编辑</a>
<% } %>
<% if (config.theme.page_history) { %>
<a href="<%= config.theme.page_history %><%= page.link %>.md" target="_blank"
class="label label-secondary">历史记录</a>
<% } %>
</div>
</h1>
<div class="mui-panel mui--hidden-md mui--hidden-xs mui--hidden-sm" id="toc">
<div class="toc-heading">
<h4>目录</h4>
<a id="toc-hide" href="#">隐藏</a>
</div>
</div>
<div class="row" id="article">
<%- page.content %>
</div>
<div class="space-bottom"></div>
</div>
<div class="mui-container-fluid mui-col-sm-10 mui-col-sm-offset-1">
<div class="row mui-panel">
<%- include _comment.ejs %>
</div>
</div>
</div>
<%- include _toc %>
<%- include _footer %>