This is a Hexo template for creating a blog.
To use this template, you need to have Node.js and Hexo installed on your computer.
- Clone this repository to your local machine.
git clone https://github.com/CatIsNotFound/Hexo-Blog-Template.git
- Install the dependencies.
cd Hexo-Blog-Template
npm install
- Run the Hexo server.
npx hexo server
- Open your web browser and go to
http://localhost:4000
to view the blog.
If you want to deploy your blog to your github pages, you should follow the steps below:
- Edit the
_config.yml
file to set thedeploy
section.
deploy:
type: git
repo: https://github.com/<username>/<username>.github.io.git
branch: main
- If you are in the root directory, Run the
.scripts/deploy.sh
script to deploy your blog.
This command will push the generated files to your github pages repository.