Hexo写博客

hexo配置github

Git

Install hexo-deployer-git.

$ npm install hexo-deployer-git --save

配置_config.yml文件

deploy: type: git repo: repository url branch: [branch] message: [message]

选项描述

repo GitHub/Bitbucket/Coding/GitLab repository URL branch Branch name. The deployer will detect the branch automatically if you are using GitHub or GitCafe. message Customize commit message (Default to Site updated: now('YYYY-MM-DD HH:mm:ss') )

部署命令

hexo g hexo d

可能会出现错误:Permission denied(publicKey) 问题

  1. ssh-keygen
  2. 打开github,Acount Settings—>SSH Keys —> Add SSH Key,再相应的位置填上key。
  3. key的位置再.ssh的文件下的id_rsa.pub

写新的文章

hexo new "new article"

打开之后我们会看到:

title: new article
date: 2014-11-01 20:10:33
tags:
---

文件的开头是属性,采用统一的yaml格式,用三条短横线分隔。下面是文章正文。 文章的正文支持markdown格式, 新建、删除或修改文章后,不需要重启hexo server,刷新一下即可预览。

可以修改默认的格式,属性如下

这里写图片描述

我的微信二维码如下,欢迎交流讨论

这里写图片描述 欢迎关注《IT面试题汇总》微信订阅号。每天推送经典面试题和面试心得技巧

微信订阅号二维码如下:##

这里写图片描述

注意

不能出现小括号和大括号字符,和出现异常

转载于:https://my.oschina.net/fengsehng/blog/785600

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值