hexo博客配置
2015-01-16 本文已影响1207人
此番风景
站点配置用到两个文件,一个是对整站的配置/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页面
评论
disqus:https://www.disqus.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
图床
图床是用来存储你的图片的,你上传一张本地图片,图床会给你生成一个链接,你引用链接即可找到你的图片,有很多免费的图床可用:新浪、七牛。