Blog migrated from WordPress to Hexo

September 7, 2018 1743 points heat 0 likes 0 comments

install

The details will not be shown for the time being, but 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 a Hexo folder

hexo init <folder>

Enter this directory

cd <folder>

install

npm instal

to configure

Modify Site Profile

The profile name is:
_config.yml

Modify Theme Profile

Subject in themes 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 this site
(Edit the site root directory _config.yml to add it)

 permalink_pinyin: enable: true separator: '-' # default: '-'

transfer

Convert WordPress articles

go online

Trusteeship to a reliable place.

use

General commands

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

Generate static files (can be abbreviated as hexo g)
hexo generate

Start debugging (preview of local 4000 port can be accessed through HTTP protocol)
hexo server --debug

Clean the generated cache file
hexo clean

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


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

Gcod

If life is just like the first sight, what is the sad autumn wind painting fan

Article comments