Skip to content

Commit 0b257b9

Browse files
committed
去除影响加载速度的内容,暂时去除搜索
1 parent 25bbeb7 commit 0b257b9

File tree

9 files changed

+26
-68
lines changed

9 files changed

+26
-68
lines changed

themes/vue/layout/index.ejs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
<li class="delimiter">|</li>
3838
<li><a href="http://it.vuejs.org" class="nav-link">Italiano</a></li>
3939
</ul>
40-
41-
<div id="sponsors">
42-
<%- partial('partials/sponsors') %>
43-
</div>
4440
</div>
4541

4642
<div class="down"><img src="/images/down.png"></div>

themes/vue/layout/layout.ejs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
<meta charset="utf-8">
77
<meta name="description" content="Vue.js - Intuitive, Fast and Composable MVVM for building interactive interfaces.">
88
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9-
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Roboto Mono' rel='stylesheet' type='text/css'>
10-
<link href='//fonts.googleapis.com/css?family=Dosis:300,500&text=Vue.js' rel='stylesheet' type='text/css'>
11-
<link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
129
<link rel="icon" href="/images/logo.png" type="image/x-icon">
1310
<script>
1411
window.PAGE_TYPE = "<%- page.type %>"
@@ -31,14 +28,13 @@
3128
<%- body %>
3229
<% } %>
3330
</div>
34-
<script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
3531
<script src="/js/smooth-scroll.min.js"></script>
3632
<script src="/js/common.js"></script>
3733
<% } else { %>
3834
<%- body %>
3935
<% } %>
4036

41-
<script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
37+
<script src="//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
4238
<script>
4339
document.addEventListener('DOMContentLoaded', function() {
4440
FastClick.attach(document.body);

themes/vue/layout/partials/header.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
margin-top: -15px;
1414
line-height: 30px;
1515
color: white;
16-
font-weight: bold;
16+
font-weight: 400;
1717
letter-spacing: 1px;
1818
box-shadow: 0 1px 2px rgba(0,0,0,.3);
1919
">

themes/vue/layout/partials/main_menu.ejs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<li>
2-
<form id="search-form">
3-
<input type="text" id="search-query-<%- context %>" class="search-query st-default-search-input">
4-
</form>
5-
</li>
61
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">教程</a></li>
72
<li><a href="/ssr/" class="nav-link<%- page.path.match(/ssr/) ? ' current' : '' %>">SSR</a></li>
83
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API</a></li>
Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +0,0 @@
1-
<span>Proudly sponsored by</span>
2-
<br>
3-
<a href="https://www.itunescn.com/" target="_blank" style="top:2px">
4-
<img src="/images/itunescn.png">
5-
</a>
6-
<a href="https://jsfiddle.net/" target="_blank">
7-
<img src="/images/jsfiddle.png">
8-
</a>
9-
<a href="https://laravel.com/" target="_blank">
10-
<img src="/images/laravel.png">
11-
</a>
12-
<a href="https://chaitin.cn" target="_blank" style="top:-1px">
13-
<img src="/images/chaitin.png">
14-
</a>
15-
<a href="https://htmlburger.com" target="_blank">
16-
<img src="/images/htmlburger.png">
17-
</a>
18-
<a href="https://starter.someline.com/" target="_blank" style="top:-2px">
19-
<img src="/images/someline.png">
20-
</a>
21-
<a href="http://gold.xitu.io/?utm_source=vuejs&utm_medium=image&utm_content=juejin&utm_campaign=q3_website" target="_blank" style="width:75px">
22-
<img src="/images/juejin.png" style="width:75px">
23-
</a>
24-
<a href="http://monterail.com/" target="_blank">
25-
<img src="/images/monterail.png">
26-
</a>
27-
<a href="https://www.trisoft.ro/" target="_blank" style="width:80px;top:-1px">
28-
<img src="/images/trisoft.png" style="width:80px">
29-
</a>

themes/vue/source/css/_common.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ img
1717
border none
1818

1919
h1, h2, h3, h4, strong
20-
font-weight 600
20+
font-weight 400
2121
color $dark
2222

2323
code, pre

themes/vue/source/css/_settings.styl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// font faces
2-
$body-font = 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
3-
$logo-font = 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
4-
$code-font = 'Roboto Mono', Monaco, courier, monospace
2+
$body-font = "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif
3+
$logo-font = "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif
4+
$code-font = "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif
55

66
// font sizes
77
$body-font-size = 15px
8-
$code-font-size = .8em
8+
$code-font-size = .9em
99

1010
// colors
1111
$dark = #2c3e50

themes/vue/source/css/page.styl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ $header-height = 40px
121121
.sidebar-link
122122
color $light
123123
&.current
124-
font-weight 600
124+
font-weight 400
125125
color $green
126126
&.new
127127
&:after
128128
content "NEW"
129129
display inline-block
130130
font-size 10px
131-
font-weight 600
131+
font-weight 400
132132
color #fff
133133
background-color $green
134134
line-height 14px
@@ -142,7 +142,7 @@ $header-height = 40px
142142
border-bottom 2px solid $green
143143
.section-link
144144
&.active
145-
font-weight bold
145+
font-weight 400
146146
color $green
147147
.main-menu
148148
margin-bottom 20px
@@ -203,7 +203,7 @@ $header-height = 40px
203203
padding-left 1.5em
204204
a
205205
color $green
206-
font-weight 600
206+
font-weight 400
207207
blockquote
208208
margin 2em 0
209209
padding-left 20px

themes/vue/source/js/common.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function () {
22

3-
initSearch()
3+
// initSearch()
44
initMobileMenu()
55
if (PAGE_TYPE) {
66
initVersionSelect()
@@ -11,20 +11,20 @@
1111
* Swiftype search box
1212
*/
1313

14-
function initSearch () {
15-
[
16-
'#search-query-nav',
17-
'#search-query-sidebar'
18-
].forEach(function (selector) {
19-
if (!document.querySelector(selector)) return
20-
docsearch({
21-
appId: 'BH4D9OD16A',
22-
apiKey: '85cc3221c9f23bfbaa4e3913dd7625ea',
23-
indexName: 'vuejs',
24-
inputSelector: selector
25-
})
26-
})
27-
}
14+
// function initSearch () {
15+
// [
16+
// '#search-query-nav',
17+
// '#search-query-sidebar'
18+
// ].forEach(function (selector) {
19+
// if (!document.querySelector(selector)) return
20+
// docsearch({
21+
// appId: 'BH4D9OD16A',
22+
// apiKey: '85cc3221c9f23bfbaa4e3913dd7625ea',
23+
// indexName: 'vuejs',
24+
// inputSelector: selector
25+
// })
26+
// })
27+
// }
2828

2929
/**
3030
* Mobile burger menu button for toggling sidebar

0 commit comments

Comments
 (0)