本文介紹hexo的安裝配置過程,大家可以利用本教程建立博客。
安裝nodejs運行環境
確保nodejs 和npm 已經被正確的安裝和配置到你的系統中。例如,在ArchLinux中,可以通過執行下面的命令來自動做這些事情
# pacman -S nodejs npm
安裝hexo
通過npm安裝hexo到系統中
# npm install hexo -g
初始化一個hexo根目錄
$ hexo init hexo-root $ cd hexo-root $ npm installl
安裝需要的hexo插件
$ npm install hexo-deployer-git --save $ npm install hexo-generator-feed --save $ npm install hexo-generator-sitemap --save
其中
插件hexo-deployer-git
用來部署git庫
插件hexo-generator-feed
用來生成網站訂閱頁面atom.xml
插件hexo-generator-sitemap
用來生成網站sitemap
安裝next主題
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
進一步配置
根據hexo和next文檔來配置網站和next主題
轉載請注明出處 AE博客|墨淵 ? hexo個人博客的安裝與配置
標簽: HEXO
發表評論