hexo博客配置

站点配置用到两个文件,一个是对整站的配置/blog/_config.yml
一个是对主题的配置/blog/themes/_config.yml
本博客源码GitCafe

部署到GitCafe

需要在/blog/_config.yml配置你的GitCafe地址

# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
  type:  github
  repository:  your-git-repo
  branch:  gitcafe-pages

之后执行命令
$ hexo d

hexo主题

hexo有很多主题:https://github.com/hexojs/hexo/wiki/Themes

功能扩展

给博客添加一些额外的常用功能 RSS、分享、评论
404页面

评论

多说:http://duoshuo.com/

disqus:https://www.disqus.com/

分享

加网:http://www.jiathis.com/

百度:http://share.baidu.com/code

bShare:http://www.bshare.cn/

新浪微博秀/douban秀

微博秀:http://open.weibo.com/widget/like.php

豆瓣FM秀:http://douban.fm/service/badgemaker

fork me on github

给博客加入github的fork链接:https://github.com/blog/273-github-ribbons

返回顶部功能

参考文章:http://wuchong.me/blog/2014/01/08/hexo-scrollup/

百度统计

http://tongji.baidu.com/web/welcome/login

RSS订阅和sitemap

$ npm install hexo-generator-feed
$ npm install hexo-generator-sitemap

修改_config.yml,增加以下内容

# Extensions
## Plugins: https://github.com/hexojs/hexo/wiki/Plugins
## Themes: https://github.com/hexojs/hexo/wiki/Themes
theme: light
exclude_generator:
plugins:
- hexo-generator-feed
- hexo-generator-sitemap

图床

图床是用来存储你的图片的,你上传一张本地图片,图床会给你生成一个链接,你引用链接即可找到你的图片,有很多免费的图床可用:新浪、七牛。

参考资料

  1. hexo+github搭建博客系统
  2. hexo系列教程:(四)hexo博客的优化技巧
  3. hexo系列教程:(五)hexo博客的优化技巧续
  4. Hexo博客优化:添加返回顶部功能

你可能感兴趣的:(hexo博客配置)