惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
爱范儿
爱范儿
量子位
Martin Fowler
Martin Fowler
V
V2EX
博客园 - 三生石上(FineUI控件)
I
InfoQ
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
Engineering at Meta
Engineering at Meta

路人甲 – 魔帆博客

暂无文章

hexo 安装与配置 | 魔帆博客
路人甲 · 2016-08-22 · via 路人甲 – 魔帆博客

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