更新github地址
This commit is contained in:
parent
e4190e2e91
commit
87dc3221cf
@ -3,8 +3,8 @@
|
||||
</p>
|
||||
|
||||
<p style="text-align:center">
|
||||
<img src="https://img.shields.io/github/repo-size/sookie2010/hexo_blog.svg" alt="Size" />
|
||||
<img src=https://img.shields.io/github/package-json/v/sookie2010/hexo_blog.svg alt="Version" />
|
||||
<img src="https://img.shields.io/github/repo-size/colorfulsweet/blog-web.svg" alt="Size" />
|
||||
<img src="https://img.shields.io/github/package-json/v/colorfulsweet/blog-web.svg" alt="Version" />
|
||||
<a target="_blank" href="https://www.colorfulsweet.site">
|
||||
<img src="https://img.shields.io/badge/blog-colorfulsweet-green.svg" alt="我的博客" />
|
||||
</a>
|
||||
|
||||
@ -17,8 +17,8 @@ npm install hexo-deployer-git --save-dev
|
||||
```
|
||||
#### 创建github仓库
|
||||
仓库的名字必须是`[github用户名].github.io`
|
||||
比如我的github用户名是sookie2010
|
||||
那么就应该创建名为 **sookie2010.github.io** 的仓库
|
||||
比如我的github用户名是colorfulsweet
|
||||
那么就应该创建名为 **colorfulsweet.github.io** 的仓库
|
||||
|
||||
#### 添加配置项
|
||||
在`_config.yml`当中配置
|
||||
@ -28,8 +28,8 @@ deploy:
|
||||
repo: git@github.com:[github用户名]/[github用户名].github.io.git
|
||||
branch: master
|
||||
```
|
||||
比如我的github用户名是sookie2010
|
||||
那么repo就是 ` git@github.com:sookie2010/sookie2010.github.io.git`
|
||||
比如我的github用户名是colorfulsweet
|
||||
那么repo就是 ` git@github.com:colorfulsweet/colorfulsweet.github.io.git`
|
||||
|
||||
#### 静态化与发布
|
||||
```bash
|
||||
|
||||
@ -228,4 +228,4 @@ module.exports = {
|
||||
|
||||
---
|
||||
至此终于宣告完工, 打包可以正常运作
|
||||
附: [webpack.config.js文件](https://github.com/sookie2010/hexo_blog/blob/master/themes/yilia/webpack.config.js)
|
||||
附: [webpack.config.js文件](https://github.com/colorfulsweet/blog-web/blob/master/themes/yilia/webpack.config.js)
|
||||
@ -18,7 +18,7 @@ menu:
|
||||
# SubNav
|
||||
subnav:
|
||||
github:
|
||||
url: https://github.com/sookie2010
|
||||
url: https://github.com/colorfulsweet
|
||||
icon: github-alt
|
||||
alt: github_homepage
|
||||
weibo:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user