This commit is contained in:
yinkanglong
2023-12-17 19:18:03 +08:00
parent 857973016b
commit 6c4efbca53
4 changed files with 48 additions and 0 deletions

5
blog/hexo.sh Normal file
View File

@@ -0,0 +1,5 @@
//hexo deploy a blog
1、hexo clean清空public目录
2、hexo generate把Markdown源文件渲染成HTML输出到public目录
3、hexo server可以在本地启动静态文件服务器预览网站效果
4、hexo deploy把public目录中的文件push到Github

0
blog/创建博客.md Normal file
View File

0
blog/部署博客.md Normal file
View File

43
blog/配置博客.md Normal file
View File

@@ -0,0 +1,43 @@
https://hexo.io/zh-cn/docs/configuration
## 主要命令
_config.yml
```yml
```
scaffold/ 模板变量 -> source/post/page文章内容和变量实现 -> public/渲染结果
* 配置_config.yml
* 网站配置
* title
* subtitle
* description
* keywords
* author
* URL配置
* url
* root
* 目录配置
* 文章配置
* new_post_name新文章名称
* default_layout 默认模板
* 分页
* per_page 每页文章数量
* pagination_dir 文章目录
* 扩展
* theme
* theme_config
* 编写
* 模板scaffold
* 命令生命周期
* hexo init & npm install初始化
* hexo new [layout] title创建文章
* hexo generate 渲染生成静态html
* hexo server -p 启动一个简单服务器
* hexo deploy 部署脚本
* hexo render -o 渲染到指定目录
* hexo clean 删除自动生成的结果
* hexo list [layout] 列出所有的文章