hexo个人博客的安装与配置

2021-05-08 0 974

本文介绍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主题

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

捷丰下载 技术教程 hexo个人博客的安装与配置 https://www.nwgamer.com/238.html

常见问题

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务