Skip to content

Commit ddf1484

Browse files
author
reco_luan
committed
Merge branch 'develop' of github.com:recoluan/vuepress-theme-reco
2 parents cefba80 + 984ed3f commit ddf1484

File tree

99 files changed

+4175
-11728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+4175
-11728
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module.exports = {
198198
'prefer-const': 2,
199199
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
200200
'object-curly-spacing': [2, 'always', {
201-
objectsInObjects: false
201+
objectsInObjects: true
202202
}],
203203
'array-bracket-spacing': [2, 'never']
204204
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
22
yarn-error.log
3+
.idea
4+
yarn.lock
5+
.DS_Store
6+
.vscode
7+
package-lock.json

CHANGELOG.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,96 @@
1+
## [1.5.7](https://github.com/recoluan/vuepress-theme-reco/compare/v1.5.5...v1.5.7) (2020-09-15)
2+
3+
4+
### Bug Fixes
5+
6+
* **vuepress-theme-reco:** fix multi-language configuration err ([acb37b3](https://github.com/recoluan/vuepress-theme-reco/commit/acb37b3d4dcaa169f416c5ac3f4d5782865abdc9)), closes [#229](https://github.com/recoluan/vuepress-theme-reco/issues/229)
7+
* **vuepress-theme-reco:** fix some style problems ([84e9516](https://github.com/recoluan/vuepress-theme-reco/commit/84e9516e64d2d9d4ed2d9df3e2a28bf64dbd6323)), closes [#231](https://github.com/recoluan/vuepress-theme-reco/issues/231)
8+
9+
10+
### Features
11+
12+
* **vuepress-plugin-pagation:** set page size by plugin option ([6496869](https://github.com/recoluan/vuepress-theme-reco/commit/6496869ace0ca4571b7ea19a45b77d2764487d5d)), closes [#207](https://github.com/recoluan/vuepress-theme-reco/issues/207)
13+
* create plugin notice ([c9f251d](https://github.com/recoluan/vuepress-theme-reco/commit/c9f251dae5f757a6cb8a689f382ba3e9ba438f6f))
14+
* **vuepress-theme-reco:** use subSidebar to control the sub sidebar ([5efa924](https://github.com/recoluan/vuepress-theme-reco/commit/5efa924d7bb926223c571ad1393c2ff32aa6ca7b))
15+
16+
17+
18+
## [1.5.5](https://github.com/recoluan/vuepress-theme-reco/compare/v1.5.4...v1.5.5) (2020-08-01)
19+
20+
21+
### Features
22+
23+
* **vuepress-theme-reco:** optimize blog homepage ([ab94806](https://github.com/recoluan/vuepress-theme-reco/commit/ab9480652bfc8374fcf53df7dabee40641779eeb))
24+
* **vuepress-theme-reco:** add locale for 'All' tag label ([7a71221](https://github.com/recoluan/vuepress-theme-reco/commit/7a7122125b897c4316e32d5135f036184e01fa03))
25+
26+
27+
### Performance Improvements
28+
29+
* **vuepress-theme-reco:** optimize the home page and subSidebar ([6fd83e1](https://github.com/recoluan/vuepress-theme-reco/commit/6fd83e1ea295ce398c13523739b0900dedfd06d7))
30+
31+
32+
33+
## [1.5.4](https://github.com/recoluan/vuepress-theme-reco/compare/v1.5.3...v1.5.4) (2020-07-19)
34+
35+
36+
### Bug Fixes
37+
38+
* **vuepress-plugin-back-to-top:** fit the vuepress-plugin-smooth-scroll ([e025a61](https://github.com/recoluan/vuepress-theme-reco/commit/e025a610b391185264f2e63a2f4d58f10c388b90))
39+
40+
41+
### Features
42+
43+
* **vuepress-theme-reco:** add vuepress-plugin-smooth-scroll ([5a3dcd5](https://github.com/recoluan/vuepress-theme-reco/commit/5a3dcd5c25431487caa54298a4a23b92c8f0b55d))
44+
45+
46+
47+
## [1.5.3](https://github.com/recoluan/vuepress-theme-reco/compare/v1.4.7...v1.5.0) (2020-07-05)
48+
49+
50+
### Features
51+
52+
* **vuepress-theme-reco:** add sub sidebar ([b9a4f8f](https://github.com/recoluan/vuepress-theme-reco/commit/b9a4f8f377fdec038639aa5441b0eb44c9d4a95a))
53+
* **vuepress-theme-reco:** 新增代码主题配置 ([10fcc3e](https://github.com/recoluan/vuepress-theme-reco/commit/10fcc3eab11b366f6c8014523fa068debafac05c))
54+
* **vuepress-theme-reco:** expand NoteAbstractItem clickable area ([978f0de](https://github.com/recoluan/vuepress-theme-reco/commit/978f0de5037d8bc7ab492b0eff22056b666c7afa))
55+
56+
57+
58+
## [1.4.7](https://github.com/recoluan/vuepress-theme-reco/compare/v1.4.6...v1.4.7) (2020-06-04)
59+
60+
61+
### Bug Fixes
62+
63+
* **vuepress-theme-reco:** 修复pagation is undefined ([b36262d](https://github.com/vuepress-reco/vuepress-theme-reco/commit/85470c289fc3030bc2b709a2379d09b76e2632c1))
64+
65+
66+
67+
## [1.4.6](https://github.com/recoluan/vuepress-theme-reco/compare/v1.4.5...v1.4.6) (2020-06-01)
68+
69+
70+
### Bug Fixes
71+
72+
* **vuepress-plugin-pagation:** set perpage number to 10 ([c6041ff](https://github.com/recoluan/vuepress-theme-reco/commit/c6041ffe68a8b51f5440450315e8cf90d7b74577))
73+
* **vuepress-theme-reco:** fix english grammar errors ([9ffd819](https://github.com/recoluan/vuepress-theme-reco/commit/9ffd819e734e72aa4d1edc3978da2f299eb88731))
74+
* **vuepress-theme-reco:** fix tag & abstract error ([97d8196](https://github.com/recoluan/vuepress-theme-reco/commit/97d8196225ba2b08ebdb2517479c749c13f3bf63))
75+
76+
77+
### Features
78+
79+
* **vuepress-plugin-comments:** add internationalization default config ([0269874](https://github.com/recoluan/vuepress-theme-reco/commit/02698745469334ef8817baa96200583b4e53af8d))
80+
* **vuepress-plugin-comments:** internationalization ([7cb0bc7](https://github.com/recoluan/vuepress-theme-reco/commit/7cb0bc796dcd0c6ea551948633becfb6521f7503))
81+
* **vuepress-plugin-pagation:** add internationalization ([657f8ce](https://github.com/recoluan/vuepress-theme-reco/commit/657f8ce1748c7daee0caba11ed51743c20c82e3b))
82+
83+
84+
85+
## [1.4.5](https://github.com/recoluan/vuepress-theme-reco/compare/v1.4.4...v1.4.5) (2020-04-19)
86+
87+
88+
### Bug Fixes
89+
90+
* **vuepress-theme-reco:** fix valine ([bcb6bbd](https://github.com/recoluan/vuepress-theme-reco/commit/bcb6bbd9e581ed25c045612be767ffc019688ef8))
91+
92+
93+
194
## [1.4.4](https://github.com/recoluan/vuepress-theme-reco/compare/v1.4.3...v1.4.4) (2020-04-18)
295

396

README.md

Lines changed: 43 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,81 @@
11
<p align="center"><a href="https://vuejs.org" target="_blank" rel="noopener noreferrer"><img width="150" src="https://i.loli.net/2020/01/13/TPKA1wp6s4ufSm2.png" alt="Vue logo"></a></p>
22

3-
<p align="center">
4-
<img src="https://img.shields.io/badge/leancloud--storage-3.13.0-orange.svg">
5-
<img src="https://img.shields.io/badge/valine-1.3.6-blue.svg">
6-
<img src="https://img.shields.io/badge/vue--click--outside-1.0.7-blue.svg">
7-
8-
</p>
9-
103
## Introduce
114

12-
1. 这是一个vuepress主题,旨在添加博客所需的分类、标签墙、分页、评论等功能;
13-
2. 主题追求极简,根据 vuepress 的默认主题修改而成,官方的主题配置仍然适用;
14-
3. 效果[午后南杂](https://www.recoluan.com)
15-
4. 文档[vuepress-theme-reco-doc](https://vuepress-theme-reco.recoluan.com)
5+
1. This is a Vuepress theme, which is designed to add blog categories, tag walls, pagination, comments and other functions required;
6+
2. The theme is minimalist, modified according to the default theme of Vuepress, and the official theme configuration is still applicable;
7+
3. Demo[午后南杂](https://www.recoluan.com)
8+
4. Docs[vuepress-theme-reco-doc](https://vuepress-theme-reco.recoluan.com)[github source](https://vuepress.github.io)[zeit source](https://vuepress-reco-doc.now.sh)
169

1710
## Quick start
1811

1912
**npx**
2013

2114
```
22-
npx @vuepress-reco/theme-cli init my-blog
15+
npx @vuepress-reco/theme-cli init
2316
```
2417

2518
**npm**
2619

2720
```bash
28-
# init
2921
npm install @vuepress-reco/theme-cli -g
30-
theme-cli init my-blog
31-
32-
# install
33-
cd my-blog
34-
npm install
35-
36-
# run
37-
npm run dev
3822

39-
# build
40-
npm run build
23+
theme-cli init
4124
```
4225

4326
**yarn**
4427

4528
```bash
46-
# init
4729
yarn global add @vuepress-reco/theme-cli
48-
theme-cli init my-blog
4930

50-
# install
51-
cd my-blog
52-
yarn install
53-
54-
# run
55-
yarn dev
56-
57-
# build
58-
yarn build
31+
theme-cli init
5932
```
6033

61-
## Preview
62-
63-
![size.png](https://i.loli.net/2020/01/13/nCbXp13lRG2TNeD.png)
34+
## Multi-language
6435

65-
![style.png](https://i.loli.net/2020/01/13/ke1VirShQRLnEd7.png)
36+
|language|language code|
37+
|:-:|-|
38+
|Simplified Chinese|`zh-CN``zh-SG`|
39+
|Traditional Chinese|`zh-HK``zh-MO``zh-TW`|
40+
|Japanese|`ja-JP`|
41+
|Korean|`ko-KR`|
42+
|English|`en-US` and other|
6643

67-
![dark.png](https://i.loli.net/2020/01/13/Lj6XbwdmDFCYH9k.png)
44+
## Update record
6845

69-
![home.png](https://i.loli.net/2020/01/13/nra3kbYSlxojmw4.png)
46+
[Record](https://github.com/vuepress-reco/vuepress-theme-reco/blob/develop/CHANGELOG.md)
7047

7148
## Contributors
7249

73-
**衷心感谢为此项目贡献过宝贵代码的朋友们**
50+
<a style="display: block;margin-top: 10px" href="https://github.com/vuepress-reco/vuepress-theme-reco/graphs/contributors" target="_black">
51+
<img
52+
alt="vuepress-theme-reco"
53+
src="https://img.shields.io/github/contributors/vuepress-reco/vuepress-theme-reco?style=for-the-badge&logo=github&label=vuepress-theme-reco" />
54+
</a>
7455

75-
|昵称|贡献记录|
76-
|:-:|-|
77-
|[kangxu](https://github.com/kangxukangxu)|[vuepress-theme-reco@0.x](https://github.com/recoluan/vuepress-theme-reco/commit/ec7426a88d50cf8d9f90a7ad9b731a10da7f438b)|
78-
|[Ekko](https://github.com/danranVm)|[vuepress-theme-reco-demo@1.x](https://github.com/recoluan/vuepress-theme-reco-demo/commit/6d2bbe919e7f6564b8c8173558d197e38e024dc5)|
56+
<br />
7957

80-
**衷心感谢美女设计师**
58+
<a style="display: block;margin-top: 10px" href="https://github.com/vuepress-reco/vuepress-reco.github.io/graphs/contributors" target="_black">
59+
<img
60+
alt="vuepress-reco.github.io"
61+
src="https://img.shields.io/github/contributors/vuepress-reco/vuepress-reco.github.io?style=for-the-badge&logo=github&label=vuepress-reco.github.io" />
62+
</a>
8163

82-
|昵称|贡献内容|
83-
|:-:|-|
84-
|[Zoey]()|主题图标调整定稿|
85-
|冰冰|主题图标初稿|
64+
<br />
65+
66+
**P.S. Thanks to the two beauties for their contributions to the theme logo: Zoey and 冰冰.**
67+
68+
[Join us](https://www.notion.so/vuepress-reco-f8a7a55d18e042929931b612f170dbf4)
8669

8770
## License
8871
[MIT](https://github.com/recoluan/vuepress-theme-reco/blob/master/LICENSE)
72+
73+
## Preview
74+
75+
![size.png](https://i.loli.net/2020/01/13/nCbXp13lRG2TNeD.png)
76+
77+
![style.png](https://i.loli.net/2020/01/13/ke1VirShQRLnEd7.png)
78+
79+
![dark.png](https://i.loli.net/2020/01/13/Lj6XbwdmDFCYH9k.png)
80+
81+
![home.png](https://i.loli.net/2020/01/13/nra3kbYSlxojmw4.png)

example/.vuepress/config.js

Lines changed: 70 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
11
module.exports = {
22
title: "vuepress-theme-reco",
3-
description: 'A simple and beautiful vuepress blog theme .',
3+
description: 'A simple and beautiful vuepress blog theme.',
44
dest: 'example/public',
55
head: [
66
['link', { rel: 'icon', href: '/favicon.ico' }],
77
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
88
],
9+
base: '/reco-example-test/',
910
// theme: 'reco',
1011
theme: require.resolve('../../packages/vuepress-theme-reco'),
1112
themeConfig: {
1213
nav: [
1314
{ text: 'Home', link: '/', icon: 'reco-home' },
1415
{ 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-
}
16+
{ text: 'sidebar', link: '/views/sidebar/' },
17+
{ text: 'sidebar', link: '/views/sidebargroup/' }
2618
],
19+
sidebar: {
20+
'/views/sidebar/': [
21+
'',
22+
'bar1',
23+
'bar2'
24+
],
25+
'/views/sidebargroup/': [
26+
{
27+
title: '基础',
28+
collapsable: true,
29+
children: [
30+
'',
31+
'bar1'
32+
]
33+
},
34+
{
35+
title: '进阶',
36+
collapsable: true,
37+
children: [
38+
'bar2'
39+
]
40+
},
41+
]
42+
},
2743
type: 'blog',
2844
// 博客设置
2945
blogConfig: {
@@ -36,14 +52,14 @@ module.exports = {
3652
text: 'Tag' // 默认 “标签”
3753
}
3854
},
39-
type: 'blog',
4055
logo: '/head.png',
4156
authorAvatar: '/head.png',
4257
// 搜索设置
4358
search: true,
4459
searchMaxSuggestions: 10,
4560
// 自动形成侧边导航
46-
sidebar: 'auto',
61+
subSidebar: 'auto',
62+
sidebarDepth: 4,
4763
// 最后更新时间
4864
lastUpdated: 'Last Updated',
4965
// 作者
@@ -68,6 +84,44 @@ module.exports = {
6884
avatar: "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
6985
link: 'https://vuepress-theme-reco.recoluan.com'
7086
},
71-
]
72-
}
87+
],
88+
/**
89+
* support for
90+
* '' | 'default'
91+
* 'coy'
92+
* 'dark'
93+
* 'funky'
94+
* 'okaidia'
95+
* 'solarizedlight'
96+
* 'tomorrow'
97+
* 'twilight'
98+
*/
99+
},
100+
plugins: [
101+
['@vuepress-reco/vuepress-plugin-bulletin-popover', {
102+
body: [
103+
{
104+
type: 'title',
105+
content: '欢迎加入QQ交流群 🎉🎉🎉',
106+
style: 'text-aligin: center;'
107+
},
108+
{
109+
type: 'image',
110+
src: '/rvcode_qq.png'
111+
}
112+
],
113+
footer: [
114+
{
115+
type: 'button',
116+
text: '打赏',
117+
link: '/donate'
118+
},
119+
{
120+
type: 'button',
121+
text: '打赏',
122+
link: '/donate'
123+
}
124+
]
125+
}]
126+
]
73127
}
191 KB
Loading
13.3 KB
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// $accentColor = #424242
2-
// $textColor = #232321
2+
// $textColor = #232321

example/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
home: true
3+
heroText: vuepress-theme-reco
4+
tagline: A simple and beautiful vuepress blog theme.
35
# heroImage: /hero.png
46
# heroImageStyle: {
57
# maxWidth: '600px',

0 commit comments

Comments
 (0)