Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

常用命令

--
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server
-- 清除缓存文件
hexo clean
INFO Deleted database.
INFO Deleted public folder.
-- 清除缓存文件并启动服务器
hexo clean && hexo server -p 5000
-- 生成静态文件
-- 使用 generate 命令后,hexo 的文件夹会自动生成静态文件,放置到配置文件中规定的 public 目录中
hexo generate
-- 部署网站 (清除缓存文件)
hexo clean && hexo deploy
文章目录
  1. Quick Start
    1. Create a new post
    2. Run server
    3. Generate static files
    4. Deploy to remote sites
    5. 常用命令
|