Skip to content

Commit 86a6831

Browse files
committed
fix: img err in home page
1 parent 24a2ccb commit 86a6831

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,50 @@
1515
3. 效果:[午后南杂](https://www.recoluan.com)
1616
4. 文档:[vuepress-theme-reco-doc](https://vuepress-theme-reco.recoluan.com)
1717

18+
## Quick start
19+
20+
**npx**
21+
22+
```
23+
npx @vuepress-reco/theme-cli init my-blog
24+
```
25+
26+
**npm**
27+
28+
```bash
29+
# init
30+
npm install @vuepress-reco/theme-cli -g
31+
theme-cli init my-blog
32+
33+
# install
34+
cd my-blog
35+
npm install
36+
37+
# run
38+
npm run dev
39+
40+
# build
41+
npm run build
42+
```
43+
44+
**yarn**
45+
46+
```bash
47+
# init
48+
yarn global add @vuepress-reco/theme-cli
49+
theme-cli init my-blog
50+
51+
# install
52+
cd my-blog
53+
yarn install
54+
55+
# run
56+
yarn dev
57+
58+
# build
59+
yarn build
60+
```
61+
1862
## Remind
1963

2064
**首页新增 “华为” 相关文案,请允许我以这样的方式支持 “华为”。**

components/HomeBlog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:isHome="true"
1616
:currentPage="1"></note-abstract>
1717
<div class="info-wrapper">
18-
<img class="personal-img" :src="$withBase($frontmatter.faceImage || $themeConfig.logo)" alt="hero">
18+
<img class="personal-img" :src="$frontmatter.faceImage ? $withBase($frontmatter.faceImage) : require('../images/home-head.png')" alt="hero">
1919
<h3 class="name" v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</h3>
2020
<div class="num">
2121
<div>

images/home-head.png

32.2 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-reco",
3-
"version": "1.0.8-alpha.3",
3+
"version": "1.0.8-alpha.4",
44
"description": "this is a vuepress theme",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)