Skip to content

Latest commit

 

History

123 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in Visual Studio Code

blog

项目介绍

用于github.io的仓库

基于HEXO的博客发布流程

安装

  1. node版本需要10.x,推荐v10.24.1
  2. 安装node 和 git,具体步骤略过
  3. 安装hexo的命令行工具 npm install -g hexo-cli
  4. 安装 Hexo 完成后,请执行下列命令,Hexo 将会在指定文件夹中新建所需要的文件。
hexo init <folder>
cd <folder>
npm install

新建完成后,指定文件夹的目录如下:

├── _config.yml
├── package.json
├── scaffolds
├── source
|   ├── _drafts
|   └── _posts
└── themes
  1. 新建文章 hexo new "My New Post"
  2. 生成静态文章 hexo generate
  3. 启动服务器,本地查看。默认情况下, hexo server 访问网址为: http://localhost:4000/
  4. 确认无误后发布博客。(需要先配置_config.yml中的deploy选项) hexo deploy
  5. 如果不生效,先执行 hexo clean,然后重复5,6,7步

其他操作查看 hexo官网

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages