hexo个人博客的安装与配置

本文介绍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个人博客的安装与配置

相关推荐

发表评论

路人甲

网友评论(0)