Hello World
2024-09-16 13:10:44

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

Setup and initialize

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

# install hexo CLI
npm install -g hexo-cli

# setup environment
mkdir hippiezhou.io
cd hippiezhou.io

# target node.js version by NVM
nvm list
nvm install --lts
echo "20.17.0" > .nvmrc
nvm use

# create project
hexo init src
git init
mv src/.github/ .
mv src/.gitignore .

try to use setup.sh to setup:

1
2
chmod +x setup.sh
./setup.sh

apply third party theme

1
2
3
4
git submodule add https://github.com/zchengsite/hexo-theme-oranges.git src/themes/oranges

# or just fecth submodule
git submodule update --init --recursive

after that, copy theme config file from /src/themes/oranges/_config.yml to /src and rename it as _config.oranges.yml. then edit it for what you want.

More info: Oranges

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
2
3
$ hexo s
# or
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

2024-09-16 13:10:44
Next