Skip to content

Commit 884e7a8

Browse files
author
reco_luan
committed
feat: add example dir
1 parent d70f961 commit 884e7a8

File tree

12 files changed

+206
-2
lines changed

12 files changed

+206
-2
lines changed

example/docs/.vuepress/config.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = {
2+
title: "vuepress-theme-reco",
3+
description: 'A simple and beautiful vuepress blog theme .',
4+
dest: 'public',
5+
head: [
6+
['link', { rel: 'icon', href: '/favicon.ico' }],
7+
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
8+
],
9+
// theme: 'reco',
10+
theme: require.resolve('../../../'),
11+
themeConfig: {
12+
nav: [
13+
{ text: 'Home', link: '/', icon: 'reco-home' },
14+
{ text: 'TimeLine', link: '/timeLine/', icon: 'reco-date' },
15+
{ text: 'Contact',
16+
icon: 'reco-message',
17+
items: [
18+
{ text: 'NPM', link: 'https://www.npmjs.com/~reco_luan', icon: 'reco-npm' },
19+
{ text: 'GitHub', link: 'https://github.com/recoluan', icon: 'reco-github' },
20+
{ text: '简书', link: 'https://www.jianshu.com/u/cd674a19515e', icon: 'reco-jianshu' },
21+
{ text: 'CSDN', link: 'https://blog.csdn.net/recoluan', icon: 'reco-csdn' },
22+
{ text: '博客圆', link: 'https://www.cnblogs.com/luanhewei/', icon: 'reco-bokeyuan' },
23+
{ text: 'WeChat', link: 'https://mp.weixin.qq.com/s/mXFqeUTegdvPliXknAAG_A', icon: 'reco-wechat' },
24+
]
25+
}
26+
],
27+
type: 'blog',
28+
// 博客设置
29+
blogConfig: {
30+
category: {
31+
location: 2, // 在导航栏菜单中所占的位置,默认2
32+
text: 'Category' // 默认 “分类”
33+
},
34+
tag: {
35+
location: 3, // 在导航栏菜单中所占的位置,默认3
36+
text: 'Tag' // 默认 “标签”
37+
}
38+
},
39+
logo: '/head.png',
40+
// 搜索设置
41+
search: true,
42+
searchMaxSuggestions: 10,
43+
// 自动形成侧边导航
44+
sidebar: 'auto',
45+
// 最后更新时间
46+
lastUpdated: 'Last Updated',
47+
// 作者
48+
author: 'reco_luan',
49+
// 备案号
50+
record: 'xxxx',
51+
// 项目开始时间
52+
startYear: '2017'
53+
/**
54+
* 密钥 (if your blog is private)
55+
*/
56+
57+
// keyPage: {
58+
// keys: ['your password'],
59+
// color: '#42b983',
60+
// lineColor: '#42b983'
61+
// },
62+
63+
/**
64+
* valine 设置 (if you need valine comment )
65+
*/
66+
67+
// valineConfig: {
68+
// appId: '...',// your appId
69+
// appKey: '...', // your appKey
70+
// }
71+
},
72+
markdown: {
73+
lineNumbers: true
74+
}
75+
}
4.19 KB
Binary file not shown.
35.4 KB
Loading
15.1 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$accentColor = #424242
2+
$textColor = #232321

example/docs/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
home: true
3+
heroImage: /hero.png
4+
heroImageStyle: {
5+
maxWidth: '600px',
6+
width: '100%',
7+
display: block,
8+
margin: '9rem auto 2rem',
9+
background: '#fff',
10+
borderRadius: '1rem',
11+
}
12+
isShowTitleInHome: false
13+
actionText: Guide
14+
actionLink: /views/other/guide
15+
features:
16+
- title: Yesterday
17+
details: 开发一款看着开心、写着顺手的 vuepress 博客主题
18+
- title: Today
19+
details: 希望帮助更多的人花更多的时间在内容创作上,而不是博客搭建上
20+
- title: Tomorrow
21+
details: 希望更多的爱好者能够参与进来,帮助这个主题更好的成长
22+
---
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: first page in category1
3+
date: 2018-12-15
4+
tags:
5+
- tag1
6+
categories:
7+
- category1
8+
---
9+
10+
first page in category1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: second page in category1
3+
date: 2019-09-21
4+
tags:
5+
- tag2
6+
categories:
7+
- category1
8+
---
9+
10+
second page in category1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: first page in category2
3+
date: 2016-12-15
4+
tags:
5+
- tag3
6+
categories:
7+
- category2
8+
---
9+
10+
first page in category2
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: second page in category2
3+
date: 2017-09-21
4+
tags:
5+
- tag4
6+
categories:
7+
- category2
8+
---
9+
10+
second page in category2

0 commit comments

Comments
 (0)