Skip to content

Commit

Permalink
docs: use a instead of saber-link in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Sep 29, 2019
1 parent 018d367 commit 29d4bb7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/extract-css/pages/about.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<h1>About</h1>
<saber-link to="/">Home</saber-link>
<a href="/">Home</a>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion examples/extract-css/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h1>Home</h1>
<saber-link :to="$saber.getPageLink('about.vue')">About</saber-link>
<a href="about.vue">About</a>
</div>
</template>
12 changes: 6 additions & 6 deletions packages/saber-plugin-query-posts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ Then in the layout component `layouts/index.vue`, `page.posts` and `page.paginat
<ul>
<li v-for="post in page.posts" :key="post.permalink">
<saber-link :to="post.permalink">
<a :href="post.permalink">
{{ post.title }}
</saber-link>
</a>
</li>
</ul>
<saber-link :to="page.pagination.prevLink" v-if="page.pagination.hasPrev">
<a :href="page.pagination.prevLink" v-if="page.pagination.hasPrev">
← Prev Page
</saber-link>
<saber-link :to="page.pagination.nextLink" v-if="page.pagination.hasNext">
</a>
<a :href="page.pagination.nextLink" v-if="page.pagination.hasNext">
Next Page →
</saber-link>
</a>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/saber/example/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ title: haha

aaa

<saber-link to="/hehe.html">Go to hehe</saber-link>
<a href="/hehe.html">Go to hehe</a>
2 changes: 1 addition & 1 deletion website/pages/_posts/html-and-pug-page/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Populate a `pages/about.pug`:
```pug
div
h2 This is my Pug page!
saber-link(to="/") ← Back Home
a(href="/") ← Back Home
```

Then navigate to `http://localhost:3000/about.html`:
Expand Down
8 changes: 4 additions & 4 deletions website/pages/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Let's create a simple `./components/Navbar.vue` component first:
<nav>
<h1>My Blog</h1>
<ul>
<li><saber-link to="/">Home</saber-link></li>
<li><saber-link to="/about.html">About me</saber-link></li>
<li><a href="/">Home</a></li>
<li><a href="/about.html">About me</a></li>
</ul>
</nav>
</template>
Expand Down Expand Up @@ -273,9 +273,9 @@ Awesome, now let's update the `./layouts/page.vue` to show recent posts:
<li v-for="post in page.posts" :key="post.permalink">
<h2>
{{ formatDate(post.createdAt) }} -
<saber-link :to="post.permalink">{{
<a :href="post.permalink">{{
post.title
}}</saber-link>
}}</a>
</h2>
</li>
</ul>
Expand Down

0 comments on commit 29d4bb7

Please sign in to comment.