Hexo-theme-light_cn(Hexo主题)
该主题是基于hexo默认主题hexo-theme-light的一个china适用版。
Demo
Release 1.2
主要做了下列修改:
- 整体风格更加简洁,修改多处页面细节,符合响应式设计;
- 修改文章显示宽度,main-col宽度改成760px(文章一行不宜过长);
- 添加了不蒜子计数器;
- 设计个人简历页面,Demo;
Release 1.1
改变了light主题的header样式以及整体着色。开始有别于原light主题的风格。
Release 1.0
主要改造点:
- 去google服务、去facebook、去addthis等严重影响访问速度的服务,替换成百度分享、多说评论、百度统计等国内服务。
- 修改code、blockquote样式(不太适合中文)。
- 调整index布局文件。
添加的新功能:
- Header添加头像,并添加增大动画效果
- 添加新浪微博widgets
- 添加归档widgets
- 添加toTop(回到顶部)功能
- 添加toc(文章目录)功能
- 添加个人简历Layout(便于设计自己的页面)
- 实现多级分类
- 添加gallery Layout
安装
执行下面命令,然后修改_config.yml
配置文件中theme
为 light-ch
.
git clone https://github.com/pengloo53/light-ch themes/light-ch
更新主题
cd themes/light-ch
git pull
配置
默认:
menu: 首页: /# 文集: /collection# 图集: /gallery 归档: /archives 分类: /index.html#categories 关于我: /resumesubmenu: 订阅: /atom.xml 留言: /customizationwidgets:#- search- category- archive# - tag- tagcloud- weiboexcerpt_link: Read Morecomment_link: Comments# header头像avatar: /assets/img/avatar/avatar.jpg# header右侧图片展示ad: /assets/img/avatar/hello.jpgbaidu_share: true# 请到baidu_tongji.ejs中替换代码baidu_tongji: true# enable是否开启;height小挂件高度;url替换成自己的微博挂件地址,同步修改url中height的值weibo: enable: true height: 800 url: Your weibo url# 评论提供可以选择 duoshuo 或者 wumii,无需评论,此处不填就行。comment_provider: duoshuoduoshuo: short_name: Your duoshuowumii: relateditems: true siteprefix: Your site url
avatar
头像URLbaidu_share
百度分享weibo
新浪微博duoshuo
多说评论wumii
无觅关联
Features
Gallery Post
---
layout: photo
title: Gallery Post
photos:
- http://i.minus.com/ibobbTlfxZgITW.jpg
- http://i.minus.com/iedpg90Y0exFS.jpg
---
Link Post
---
layout: link
title: Link Post
link: http://www.google.com/
---