Skip to content

Commit 510bb29

Browse files
author
Evan You
committed
add blog link in header
1 parent 3e1a553 commit 510bb29

File tree

7 files changed

+25
-10
lines changed

7 files changed

+25
-10
lines changed

source/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ order: 1
44
vue_version: 0.8.6
55
dev_size: 97.19
66
min_size: 34.02
7-
gz_size: 11.60
7+
gz_size: 11.61
88
---
99

1010
> **Compatibility Note:** Vue.js does not support IE8 and below.

themes/vue/layout/partials/header.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<ul id="nav">
77
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
88
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API Reference</a></li>
9+
<br class="break" />
910
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Examples</a></li>
11+
<li><a href="/blog/" class="nav-link<%- page.path.match(/blog/) ? ' current' : '' %>">Blog</a></li>
1012
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
1113
</ul>
1214
</div>

themes/vue/layout/partials/landing.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<div id="hero">
1111
<div class="inner">
1212
<ul id="nav">
13-
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
14-
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API Reference</a></li>
15-
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Examples</a></li>
16-
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
13+
<li><a href="/guide/" class="nav-link">Guide</a></li>
14+
<li><a href="/api/" class="nav-link">API Reference</a></li>
15+
<li><a href="/examples/" class="nav-link">Examples</a></li>
16+
<li><a href="/blog/" class="nav-link">Blog</a></li>
1717
</ul>
1818
<img id="logo" src="/images/logo.png">
1919
<h1>Vue.js</h1>

themes/vue/source/css/_common.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
body
55
font-family $body-font
6+
-webkit-font-smoothing antialiased
67
color $medium
78
margin 0
89

themes/vue/source/css/index.styl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ html, body
2020
.nav-link
2121
color $light
2222
padding-bottom 3px
23-
margin 0 1em
23+
margin 0 1.5em
24+
&:first-child
25+
margin-left 0
2426
&:hover, &.current
2527
border-bottom 3px solid $green
2628
zoom()

themes/vue/source/css/page.styl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ $header-height = 40px
1717
top 25px
1818
height $header-height
1919
line-height $header-height
20+
.break
21+
display none
2022
li
2123
display inline-block
22-
margin-left 1.2em
23-
&:first-child
24-
margin-left 0 !important
24+
margin 0 .6em
2525
.nav-link
2626
padding-bottom 3px
2727
&:hover, &.current
@@ -148,8 +148,18 @@ $header-height = 40px
148148
#nav
149149
position static
150150
margin-top .4em
151+
height 55px
152+
line-height 2.2em
153+
.break
154+
display inline-block
155+
.nav-link
156+
padding-bottom 1px
157+
&:hover, &.current
158+
border-bottom 2px solid $green
151159
#logo
152160
display block
161+
img
162+
margin-right 0
153163
span
154164
display none
155165
#main

themes/vue/source/js/vue.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)