Blog moved from WordPress to hexo

September 7, 2018 402 point heat 0 liked it 0 comments

install

The details are not listed for the time being, and they will be sorted out later

Install basic software

Git  https://git-scm.com
Node.js  https://nodejs.org/en/

Start installing hexo

Use the following command to install hexo

npm install -g hexo-cli

Create hexo folder

hexo init <folder>

Enter the directory

cd <folder>

install

npm instal

to configure

Modify site profile

The configuration file name is:
_ config.yml

Modify theme profile

The topic is located in themes Under the table of contents
file name
_ config.yml

Install some additional plug-ins

Chinese link to Pinyin
hexo-permalink-pinyin
Plug in address
https://github.com/viko16/hexo-permalink-pinyin
Default configuration of the site
(edit the site root_ Config. YML)

 permalink_ pinyin:
  enable: true
  separator: '-' # default: '-'

transfer

Converting WordPress articles

go online

Trusteeship to reliable places.

use

General order

New post (the default value of layout is post)
hexo new [layout] <title>

Generate static files (hexo G can be abbreviated)
hexo generate

Start debugging via HTTP port 4000
hexo server --debug

Clean up generated cache files
hexo clean

List website information (type can be post, page, etc.)
hexo list <type>


reference resources:
https://hexo.io/zh-cn/docs/
Last update time: September 7, 2018 (to be continued)

Gcod

Talking about the trivial matters of life and talking about the whole world, that's all

Article review