0%

hello Hexo

Create personal blog by power of Hexo + NEXT + Github

Let’s start it

安裝hexo

1
$npm install -g hexo-cli

建立blog資料夾

1
2
hexo init myblog
cd myblog/

依序安裝

1
2
3
4
5
6
7
8
9
npm install
npm install hexo-deployer-git --save
npm install hexo-admin --save
npm install hexo-symbols-count-time --save
npm install hexo-generator-searchdb --save
npm install hexo-generator-sitemap --save
git clone https://github.com/theme-next/hexo-theme-next themes/next
git clone https://github.com/theme-next/theme-next-pjax themes/next/source/lib/pjax
git clone https://github.com/theme-next/theme-next-pace themes/next/source/lib/pace

啟動hexo:

1
2
3
4
hexo cl && hexo g && hexo s
...
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.

確認:

1
2
http://192.168.1.2:4000
http://192.168.1.2:4000/admin