https://github.com/xiaozhiliaoo/blog
我的博客源码
https://github.com/xiaozhiliaoo/blog
Last synced: 2 months ago
JSON representation
我的博客源码
- Host: GitHub
- URL: https://github.com/xiaozhiliaoo/blog
- Owner: xiaozhiliaoo
- Created: 2023-05-03T14:22:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T11:25:40.000Z (9 months ago)
- Last Synced: 2025-02-16T08:27:41.225Z (4 months ago)
- Language: JavaScript
- Size: 11.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blog
我的博客源码,博客访问地址:[https://xiaozhiliaoo.github.io/](https://xiaozhiliaoo.github.io/)
## 部署
1. 首先需要安装nodejs。
2. 然后安装hexo,命令:**npm install -g hexo-cli**。
3. 将项目全部克隆到某个文件夹下。
4. 启动,**hexo clean & hexo g & hexo s**,可见脚本:**start.sh**。
5. 部署,**hexo clean & hexo g & hexo d**,可见脚步:**deploy.sh**。
6. 部署完之后将所有改动提交到blog仓库即可。执行 **sh up.push.git.sh**hexo d 将生成后的博客源码部署到了[https://github.com/xiaozhiliaoo/xiaozhiliaoo.github.io](https://github.com/xiaozhiliaoo/xiaozhiliaoo.github.io) 这个项目。
博客访问地址:[https://xiaozhiliaoo.github.io/](https://xiaozhiliaoo.github.io/)
## 目录说明
整个站点的目录:[source](source)
文章的目录:[source/_posts](source/_posts)
主题的目录:[themes](themes)
## 新建文章
hexo new xxx
## 站点的配置
_config.yaml
站点主题配置在theme: next
## 安装主题
在themes下git clone主题源码即可,需要删除.git目录,否则提交不到blog仓库。然后在[_config.yml](_config.yml) 配置主题名字,也就是目录的名字
## 主题的配置
在themes下主题的_config.yaml里面
## 说明
themes下面next命名成next1,是因为next无法提交到github仓库,同时在_config.yaml里面需要进行修改。