Theme for Hexo.
Demo: http://garwih.github.io/hexo-theme-simplecho/
修改 Hexo 根目录下 _config.yml 里面的 theme
为 simplecho
git clone https://github.com/Garwih/hexo-theme-simplecho.git themes/simplecho
进入 Hexo 根目录并执行
cd themes/simplecho
git pull
# Header
menu:
Home: /
Archives: /archives
rss: /atom.xml
favicon: /favicon.png
subtitle_show: true
# Main
duoshuo_shortname:
duoshuo_home: false
disqus_home: false
- menu - 顶部导航,Home 和 Archives 可修改为中文
- subtitle_show - 首页 title 是否显示子标题,默认 true
- duoshuo_shortname - 多说 ID
- duoshuo_home - 是否在首页加载多说的 js 。如果首页需要显示评论数量,请选择 true (设置了多说 ID 之后才有效)
- disqus_home - 是否在首页加载 Disqus 的 js。同上。
archive: 1
category: 1
tag: 1
主题默认语言为英文,需要中文的请修改。
language: zh-CN
如果使用 Disqus ,请填入你的 Disqus ID , 若设置了 Disqus ,则多说
的设置无效。
# Disqus
disqus_shortname: Disqus ID
插入文章特色图片,在文章顶部加入 image 及图片链接
title: post title
image: //example.com/example.jpg
---
无标题,即 title 留空时,发表日期会作为标题
title: Link Post
link: http://www.google.com/
---
插入视频时,为了自适应页面大小,请将视频分享代码放在 class="video"
中,例如
<div class="video">视频分享代码</div>
IE 8+, Opera, Chrome, Firefox, Safari