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 StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
实验步骤:
注册Github账号
首先,我们需要注册一个Github账号。访问 https://github.com,点击Sign up按钮,在注册页面填写相关信息
安装Node.js
Hexo是一个基于Node.js的静态博客生成器,因此在使用Hexo之前,需要安装Node.js。访问 https://nodejs.org/en/,下载Node.js的最新版本,并按照提示进行安装。
安装Hexo
安装Node.js之后,我们需要通过Node.js的包管理器npm来安装Hexo。打开终端或命令行界面,输入以下命令来安装Hexo:
npm install hexo-cli -g
该命令将全局安装Hexo的命令行工具。安装完成后,我们可以使用Hexo命令来创建新的博客,生成静态页面,以及发布博客等操作。
创建Hexo博客
安装完成Hexo之后,我们需要创建一个新的博客。在终端或命令行界面中,进入到你希望创建博客的目录,并输入以下命令:
hexo init myblog
该命令将创建一个名为myblog的新博客,并自动安装博客所需的依赖包。创建完成后,我们可以进入 ...


