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

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

本地安装 Hexo,提交代码至 Github,触发 Github Action 生成静态文件 同步至服务器

Hexo 本地部署

根据 Hexo 文档 Hexo 需要 Node.jsgit

环境

  1. Mac 上在终端中使用命令brew install git 安装 Git,使用 git -v 查看版本

  2. 使用brew install node安装 node.js (npm 会同步安装),可以使用 node -vnpm -v 查看版本,根据版本文档 node 14.0.0 以上即可。

阅读全文 »
0%