-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpl.html
49 lines (44 loc) · 1.58 KB
/
tpl.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{%=o.htmlWebpackPlugin.options.title || 'Webpack App'%}</title>
{% if (o.htmlWebpackPlugin.files.favicon) { %}
<link rel="shortcut icon" href="{%=o.htmlWebpackPlugin.files.favicon%}">
{% } %}
{% for (var css in o.htmlWebpackPlugin.files.css) { %}
<link href="{%=o.htmlWebpackPlugin.files.css[css] %}" rel="stylesheet">
{% } %}
</head>
<body>
<div id="app">
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
</a>
<div id="menu">
<div class="pure-menu">
<a class="pure-menu-heading" href="#">Julian</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"><a v-link="{path:'/home'}" class="pure-menu-link">主页</a></li>
<li class="pure-menu-item"><a v-link="{path:'/about'}" class="pure-menu-link">关于</a></li>
<li class="pure-menu-item menu-item-divided">
<a v-link="{path:'/services'}" class="pure-menu-link">服务</a>
</li>
<li class="pure-menu-item"><a v-link="{path:'/contact'}" class="pure-menu-link">联系</a></li>
</ul>
</div>
</div>
<div id="main">
<div style="margin-left: 150px">
<h1>标头</h1>
<router-view></router-view>
</div>
</div>
</div>
{% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %}
<script src="{%=o.htmlWebpackPlugin.files.chunks[chunk].entry %}"></script>
{% } %}
</body>
</html>