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

Commit 296b574

Browse files
feat: support both blog and docs (#4)
1 parent 13d20b0 commit 296b574

21 files changed

+92
-127
lines changed

lib/generators/blog/templates/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/generators/blog/templates/blog/.vuepress/components/Foo/Bar.vue

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/generators/blog/templates/blog/.vuepress/components/OtherComponent.vue

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/generators/blog/templates/blog/.vuepress/components/demo-component.vue

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/generators/blog/templates/blog/.vuepress/enhanceApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Client app enhancement file.
33
*
4-
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
4+
* https://vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
55
*/
66

77
export default ({

lib/generators/blog/templates/blog/.vuepress/styles/global.styl

Whitespace-only changes.

lib/generators/blog/templates/blog/.vuepress/styles/index.styl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33
*
44
* ref:https://v1.vuepress.vuejs.org/config/#index-styl
55
*/
6-
7-
.home .hero img
8-
max-width 450px!important
Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
11
/**
2-
* Custom palette here.
2+
* Override default preset here.
33
*
4-
* ref:https://v1.vuepress.vuejs.org/zh/config/#palette-styl
4+
* ref:https // vuepress.vuejs.org/config/#palette-styl
55
*/
66

7-
$accentColor = lighten(#4a154b, 20%)
8-
$textColor = #2c3e50
9-
$borderColor = rgba(0,0,0,.05)
10-
$codeBgColor = #000
11-
$arrowBgColor = #ccc
7+
// colors
8+
// $accentColor = lighten(#4a154b, 50%)
9+
10+
// $textColor = #2c3e50
11+
// $darkTextColor = #000
12+
13+
// $borderColor = rgba(0,0,0,.05)
14+
// $darkBorderColor = #000
15+
16+
// $codeBgColor = #000
17+
18+
// $bgColor = #fff
19+
// $headerBgColor = $bgColor;
20+
21+
// $footerBgColor = #000
22+
// $footerColor = #828282
23+
24+
// $newsletterBgColor = #f8f8f8
25+
26+
// layout
27+
// $headerHeight = 80px
28+
// $contentWidth = 740px
29+
30+
// responsive breakpoints
31+
// $MQNarrow = 959px
32+
// $MQMobile = 719px
33+
// $MQMobileNarrow = 419px
34+
35+
// code
36+
// $lineNumbersWrapperWidth = 3.5rem
37+
// $codeLang = js ts html md vue css sass scss less stylus go java c sh yaml py docker dockerfile makefile

lib/generators/blog/templates/blog/_posts/2018-11-7-frontmatter-in-vuepress-2.md renamed to lib/generators/blog/templates/blog/_posts/2018-11-07-frontmatter-in-vuepress-2.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
date: 2018-11-7
3-
tags:
2+
title: frontmatter in vuepress 2
3+
date: 2018-11-07
4+
tags:
45
- frontmatter
56
- vuepress
67
author: ULIVZ
78
location: Hangzhou
89
---
910

10-
# Front Matter in VuePress
11-
1211
Any markdown file that contains a YAML front matter block will be processed by [gray-matter](https://github.com/jonschlinkert/gray-matter). The front matter must be the first thing in the markdown file and must take the form of valid YAML set between triple-dashed lines. Here is a basic example:
1312

1413
```markdown

lib/generators/blog/templates/blog/_posts/2018-11-7-frontmatter-in-vuepress-3.md renamed to lib/generators/blog/templates/blog/_posts/2018-11-07-frontmatter-in-vuepress-3.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
date: 2018-11-7
3-
tags:
2+
title: frontmatter in vuepress 3
3+
date: 2018-11-07
4+
tags:
45
- frontmatter
56
- vuepress
67
author: ULIVZ
78
location: Hangzhou
89
---
910

10-
# Front Matter in VuePress
11-
1211
Any markdown file that contains a YAML front matter block will be processed by [gray-matter](https://github.com/jonschlinkert/gray-matter). The front matter must be the first thing in the markdown file and must take the form of valid YAML set between triple-dashed lines. Here is a basic example:
1312

1413
```markdown

0 commit comments

Comments
 (0)