Hello Hexo

Rxw

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

$ npx hexo new "My New Post"

More info: Writing >

Run server

$ npx hexo server

More info: Server >

Generate static files

$ npx hexo generate

More info: Generating >

Deploy to remote sites

$ npx hexo deploy

More info: Deployment >

Posted to GitHub Pages

登录 GitHub,新建一个 Repository,Repository name一定要是你的用户名.github.io

打开博客目录下的_config.yml,拉到最后,填写deploy模块:repository 填写刚才复制的链接

npm install hexo-deployer-git --save
npx hexo g -d

注意npx加上是因为没有加全局环境,用node.js内部的

  • Title: Hello Hexo
  • Author: Rxw
  • Created at : 2024-08-07 22:30:15
  • Updated at : 2026-05-31 00:01:22
  • Link: https://rxw2023-github-io.pages.dev/2024/08/07/Hello Hexo/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments