前言:
Hexo
什麼是Hexo
Hexo是一個快速、簡單、強大的博客框架。支持Markdown
##安裝
略
環境
安裝Hexo很簡單。然而,你需要先安裝
- Node.js
- Git
如果已經安裝了,就直接用npm裝Hexo吧
$ npm install -g hexo-cli
如果沒安裝,參考以下安裝教程:
Mac 用戶
先從APP store裝Xcode
Preferences -> Download -> Command Line Tools -> Install
安裝 Git
- Windows: Download & install git.
- Mac: Install it with Homebrew, MacPorts or installer.
- Linux (Ubuntu, Debian): sudo apt-get install git-core
- Linux (Fedora, Red Hat, CentOS): sudo yum install git-core
###安裝Node.js
安裝node.js最好的方法是通過nvm.
cURL:
$ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
Wget:
$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
如果安裝了nvm,重啓終端然後運行以下命令安裝node.js
$ nvm install stable 或者直接下載[Node.js](https://nodejs.org/en/)