-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_header.ejs
56 lines (55 loc) · 2.69 KB
/
_header.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
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="<%= config['wiki'].author %>">
<meta name="description" content="<%= config['wiki'].description %>">
<title>
<% if (page && page.title) { %>
<%= page.title %> - <%= config['wiki'].title %>
<% } else { %>
<%= config['wiki'].title %> - <%= config['wiki'].tagline %>
<% } %>
</title>
<link href="<%= config['base'].path %>assets/mui.min.css" rel="stylesheet" type="text/css" />
<link href="<%= config['base'].path %>assets/style.css" rel="stylesheet"/>
<link href="<%= config['base'].path %>assets/octicons/font/octicons.min.css" rel="stylesheet" />
<script src="<%= config['base'].path %>assets/highlight.min.js"></script>
<script src="<%= config['base'].path %>assets/mui.min.js"></script>
</head>
<body>
<header id="header" class="mui--z2">
<div class="mui-appbar mui--appbar-line-height">
<div class="mui-container-fluid">
<a class="sidedrawer-toggle mui--visible-xs-inline-block mui--visible-sm-inline-block js-show-sidedrawer">☰</a>
<a class="sidedrawer-toggle mui--hidden-xs mui--hidden-sm js-hide-sidedrawer">☰</a>
<% if (page && page.title) { %>
<span class="appbar-brand mui--hidden-xs"><%= page.category %></span>
<% if (page.link.lastIndexOf('/') !== 0) { %>
<% var prelink = page.link.replace('\\','').split('/')[0] %>
<b class="appbar-brand octicon octicon-chevron-right mui--hidden-xs"></b>
<a href="../" class="appbar-brand mui--hidden-xs"><%= prelink %></a>
<% } %>
<b class="appbar-brand octicon octicon-chevron-right mui--hidden-xs"></b>
<span class="appbar-brand mui--hidden-xs"><%= page.title %></span>
<span class="mui--text-title appbar-brand mui--visible-xs-inline-block"><%= config['wiki'].title %></span>
<% } else { %>
<span class="mui--text-title appbar-brand" target="_self"><%= config['wiki'].title %></span>
<% } %>
</div>
</div>
</header>
<div id="sidedrawer" class="mui--no-user-select">
<div id="sidedrawer-brand" class="mui--appbar-line-height">
<a href="<%= config['base'].path %>" class="mui--text-title" target="_self"><%= config['wiki'].title %></a>
</div>
<div class="mui-divider"></div>
<ul>
<% if (page && page.title) { %>
<%- include _side_index %>
<% } %>
<%- include _sidebar %>
</ul>
</div>