类书籍化的hexo主题。
A hexo theme base on jade and stylus like a book. Designed by hexo-theme-modernist.
npm install hexo-renderer-jade --save
git clone git://github.com/ronesam/hexo-theme-zero.git themes/zero
zero requires Hexo 2.4 and above.
Modify theme setting in _config.yml to zero.
cd themes/zero
git pull
- 支持toc
- 评论接入多说
- 模态加载summary
- 全屏代码更换为cdn库
- script分离,按需加载
- 新增summary布局
- 将
ejs模板替换成我喜欢的jade
- 网站的配色很不错,但实在太窄了,根据多年的习惯,把网页的默认宽度由:680px -> 760px
- 调整签名栏宽度为240px,可以多增加一些菜单
- 调整blockquote的上下留白,统一为15px(原谅我可悲的像素眼和强迫症……)
- 调整blockquote的尾注,移到右侧并取消顶部线条,下边距增加到14px
- 由于众所周知的原因,将一些静态资源迁移到国内的公共CDN:Bootcdn、360cdn
- jquery升级:1.8.0 -> 2.1.4
- imagesload升级: 未知 -> 2.1.0(未采用更高版本,因需要另外引入EventEmitter)
- fancybox:2.1.1 -> 2.1.5,并删除本地目录
- font-awesome:未知 -> 4.4.0,并删除本地目录(没有直接用到css文件,而是仅引入了字体)
- 将
fonts.googleapis.com中的涉及到样式合并到本地(但字体文件本身还是用的360cdn) - 将gallery.js(用于展示顶部相册,并给图片打标)和scale.fit.js(移动设备按比例缩放)合并为hexo-theme-zero.js
- 将css、js、img目录统一迁移到static,并将static同步到七牛
- 去掉head.ejs中description是否存在的相关判断和操作,open_graph()函数中已有包含
- 增加theme里面关于cdn的配置
- 增加右侧边栏,包含
回到顶部、全屏、目录、评论;上一篇、下一篇等按钮 - 增加点击全屏功能,基于
[jquery.fullscreen.js],并调整代码使其支持回到顶部按钮 - 增加回到顶部功能(普通模式&全屏模式均支持)
# Header
menu:
Home: /
Archives: /archives
rss: /atom.xml
# Content
archive_date_format: MMM DD
fancybox: true
# Comment Plugin
duoshuo_shortname:
# Miscellaneous
google_analytics:
favicon: /favicon.ico