ubuntu下使用hexo搭建博客
来源:互联网 发布:淘宝金牌卖家在哪 编辑:程序博客网 时间:2024/04/28 08:45
1.安装Node.js
sudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updatesudo apt-get install nodejs
2.安装Git
sudo apt-get install git
3.安装hexo
sudo npm install hexo -g
初始你博客的根目录(或者cd到指定目录下,然后执行hexo init)
hexo init <dir>
4.让博客可以发布到git(参考连接:https://hexo.io/docs/deployment.html)
(1)安装hexo-deployer-git(不然会出现ERROR Deployer not found: git)
npm install hexo-deployer-git --save
(2) 配置你hexo博客根目录下的_config.yml文件(应该是最下面一行,修改成你的github)
# Deployment## Docs: http://hexo.io/docs/deployment.htmldeploy: type: git repo: git@github.com:ClaymanTwinkle/ClaymanTwinkle.github.io.git branch: master
5.hexo常用命令
创建页面:hexo new post "文章名字(可以是中文)"生成html : hexo generate(或者hexo g)发布到git: hexo deploy生成并发布:hexo generate -d (或者hexo g -d)
0 0
- ubuntu下使用hexo搭建博客
- ubuntu下搭建Hexo+GitHub博客
- ubuntu下基于hexo搭建个人博客
- 使用Hexo+Github+Ubuntu搭建博客
- Windows下使用Hexo+GithubPage搭建博客
- Mac下使用Hexo搭建个人博客
- Windows下使用Hexo+GithubPage搭建博客
- 使用Hexo搭建博客
- 使用Hexo搭建博客
- Ubuntu下github pages+hexo搭建自己的博客
- Hexo-mac下搭建hexo博客全过程
- 使用Hexo搭建github博客
- 使用hexo搭建个人博客
- 使用hexo搭建个人博客
- 搭建GitHub博客,使用Hexo
- 使用Hexo搭建个人博客
- 使用hexo搭建个人博客
- 使用Hexo搭建个人博客
- 矩阵转置+矩阵相加(三元组)
- echarts 动态数据交互实例
- RHCE 学习笔记(9) 网络管理
- 无法访问 IIS 元数据库。您没有足够的特权访问计算机上的 IIS 网站。
- VS2013 无法使用'inet_ntoa': Use inet_ntop() or InetNtop() instead or define
- ubuntu下使用hexo搭建博客
- timeout
- ios应用版本号设置规则
- 2015 AppStore 最新审核指南
- [java学习]移位运算交换两数的值的出错情况
- 关于使用apache-tomcat-7.0.67中在apache-tomcat-7.0.67/log/catalina.out文件过大的解决方案
- Java枚举应用实例
- 87.获取IP地址--Mark,曾经的坑
- uinavigationcontroller 中的viewcontrollers 跳到指定的controller一个栈顶指针的变化