0%

Blog config

Install Hexo

1
2
3
4
5
$ npm install hexo-cli -g
$ hexo init blog # init a hexo project called "blog" in current folder
$ cd blog
$ npm install # "package-lock.json" created
$ hexo s # "db.json" created & project preview

Install Next & Choosing-Scheme

  • $ npm install hexo-theme-next
  • ## my config (for NexT scheme)

Hexo > Themes > “NexT” > Doc > NexT-Installation (download by npm) > Choosing-Scheme (select “Gemini”)

Config

Write new posts/pages

1
2
$ hexo new [page] <title>
$ hexo clean && hexo g

Deployment

  • github pages of this website: _config.yml: ## my config (for deployment)
  • github repo of the source file: blog-source