-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
32 lines (31 loc) · 1.06 KB
/
index.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
<%- 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><%= config['wiki'].title %></h1>
<p><%= config['theme'].greeting %></p>
<h2>文章列表</h2>
<% categories.forEach(function(category) { %>
<div class="row">
<div class="col-md-12">
<h3><%= category.name %></h3>
</div>
<div class="col-md-10 col-md-offset-1">
<ul class="list-unstyled">
<% category.pages.forEach(function(p) { %>
<li>
<a href="<%= config['base'].path %><%= config['dir'].page %><%= p.link %>/" target="_self">
<%= p.title %>
</a>
</li>
<% }) %>
</ul>
</div>
</div>
<% }) %>
<%- config['theme'].index_content %>
</div>
</div>
<%- include _footer %>