Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 69fa262

Browse files
committed
chore: update examples
1 parent c6d3971 commit 69fa262

24 files changed

+140
-103
lines changed

examples/directory-classifier/.vuepress/config.js

-20
This file was deleted.

examples/directory-classifier/.vuepress/theme/layouts/DirectoryPagination.vue

-11
This file was deleted.

examples/directory-classifier/.vuepress/theme/layouts/IndexPost.vue

-12
This file was deleted.

examples/directory-classifier/_posts/2018-4-4-intro-to-vuepress.md

-1
This file was deleted.

examples/directory-classifier/_posts/2019-6-8-intro-to-vuepress-next.md

-1
This file was deleted.

examples/directory-classifier/_posts/2019-6-8-vueconf.md

-1
This file was deleted.

examples/disqus/.vuepress/config.js

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ module.exports = {
3434
globalPagination: {
3535
lengthPerPage: 5
3636
},
37-
sitemap: {
38-
hostname: 'https://yourdomain'
39-
},
4037
comment: {
4138
service: 'disqus',
4239
shortname: 'vuepress-plugin-blog',

examples/frontmatter-classifier/.vuepress/config.js

-20
This file was deleted.

examples/frontmatter-classifier/.vuepress/theme/layouts/FrontmatterClassifier.vue

-11
This file was deleted.

examples/frontmatter-classifier/.vuepress/theme/layouts/Tags.vue

-11
This file was deleted.

examples/frontmatter-classifier/a.md

-3
This file was deleted.

examples/frontmatter-classifier/b.md

-3
This file was deleted.

examples/frontmatter-classifier/c.md

-3
This file was deleted.

examples/sitemap/.vuepress/config.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
title: `ULIVZ`,
3+
plugins: [
4+
[require('../../../lib/node'), {
5+
directories: [
6+
{
7+
id: 'post',
8+
dirname: '_posts',
9+
path: '/',
10+
},
11+
],
12+
frontmatters: [
13+
{
14+
id: "tag",
15+
keys: ['tag', 'tags'],
16+
path: '/tag/',
17+
frontmatter: { title: 'Tag' },
18+
},
19+
{
20+
id: "location",
21+
keys: ['location'],
22+
path: '/location/',
23+
frontmatter: { title: 'Location' },
24+
}
25+
],
26+
sitemap: {
27+
hostname: 'https://yourdomain'
28+
},
29+
}],
30+
],
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<ul id="default-layout">
3+
<li v-for="item in $frontmatterKey.list">
4+
<router-link class="page-link" :to="item.path">{{ item.name }}</router-link>
5+
</li>
6+
</ul>
7+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<div id="global-layout">
3+
<header style="background-color: #DDD">
4+
<router-link to="/">Home</router-link
5+
<router-link to="/tag/">Tag</router-link
6+
<router-link to="/location/">Location</router-link>
7+
</header>
8+
<DefaultGlobalLayout/>
9+
<footer style="background-color: #DDD">Powered by VuePress</footer>
10+
</div>
11+
</template>
12+
13+
<script>
14+
import GlobalLayout from '@app/components/GlobalLayout.vue'
15+
16+
export default {
17+
components: { DefaultGlobalLayout: GlobalLayout },
18+
created() {
19+
console.log()
20+
}
21+
}
22+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<div>
3+
<ul id="default-layout">
4+
<li v-for="page in $pagination.pages">
5+
<router-link class="page-link" :to="page.path">{{ page.title }}</router-link>
6+
</li>
7+
</ul>
8+
<div id="pagination">
9+
<router-link v-if="$pagination.hasPrev" :to="$pagination.prevLink">Prev</router-link>
10+
<router-link v-if="$pagination.hasNext" :to="$pagination.nextLink">Next</router-link>
11+
</div>
12+
13+
<Pagination v-if="$pagination.length > 1"/>
14+
</div>
15+
</template>
16+
17+
<script>
18+
import { Pagination } from '../../../../../lib/client/components.js'
19+
20+
export default {
21+
components: { Pagination },
22+
created() {},
23+
}
24+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<Content />
3+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
date: 2018-11-7
3+
tag:
4+
- frontmatter
5+
- vuepress
6+
author: ULIVZ
7+
location: Hangzhou
8+
---
9+
10+
# Front Matter in VuePress
11+
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
date: 2019-2-26
3+
tag:
4+
- markdown
5+
- vuepress
6+
author: ULIVZ
7+
location: Hangzhou
8+
---
9+
10+
# Markdown Slot
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
date: 2019-5-6
3+
tag:
4+
- theme
5+
- blog
6+
- vuepress
7+
author: ULIVZ
8+
location: Shanghai
9+
---
10+
11+
# Writing a VuePress theme
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
date: 2019-8-15
3+
tag:
4+
- git
5+
location: Taipei
6+
---
7+
8+
# Why I like "git rebase"
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
date: 2019-9-8
3+
tag:
4+
- vuepress
5+
location: Taipei
6+
---
7+
8+
# Dive into VuePress with Plugin APIs
9+

examples/vssue/.vuepress/config.js

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ module.exports = {
3434
globalPagination: {
3535
lengthPerPage: 5
3636
},
37-
sitemap: {
38-
hostname: 'https://yourdomain'
39-
},
4037
comment: {
4138
service: 'vssue',
4239
owner: 'You',

0 commit comments

Comments
 (0)