=============
想使用 xirong 修改的next 的主题的朋友们,方法如下:$ git clone https://github.com/xirong/hexo-theme-next.git themes/next
,在自己repository 根目录下的_config.yml 中配置为 theme: next
就可以了。
说明:从iissan版本新增特性如下:
2015-04 新增特性(这些已经合并到iissnan的分支上面:https://github.com/iissnan/hexo-theme-next)
2015 新增特性
- 增加博客打赏功能
- 支持友链功能
- 添加多说分享功能,并调整排版适合NeXT主题,效果如:http://www.ixirong.com/2015/05/17/how-to-build-ixirong-blog/#comments
- 适配手机、pad端展示 由于hexo renderplation的bug,暂时在手机端去掉搜索框、以及公益404标签的展示
- 修复tiny_sou搜索插件注释后整个表头不展示的bug
- 只在文章页面显示”热评文章“,其它关于、tag、分类页面不展示
- 调整code代码块里面行号的颜色,更改成浅灰色。
- 调整“热评文章”模块在手机上的显示样式,符合NeXT主题,perfect!!
- 防止百度转码代码 ,详情查看 issue258
feature,正在考虑的功能:
精于心,简于形
NexT - 默认主题
Mist - Compact of NexT
-
从 GitHub 下载
$ cd your-hexo-site $ git clone https://github.com/iissnan/hexo-theme-next themes/next
-
更改站点
_config.yml
中的theme
字段设置为next
theme: next
或者,你可以下载稳定的发布版本。
cd themes/next
git pull
因为主题在不断的更新,所以你可能会遇到冲突,需要手动解决。在更新之前,建议备份下当前的配置。
特性概览:
NexT 坚持将复杂的细节隐藏,提供尽量少并且简便的设置,保持最大限度的易用性。
为了尽量避免更新主题的时候,避免发生冲突,建议将配置写在站点的 _config.yml
中。
以下选项建议放置在站点级别的配置中,这些选项你在下个主题中可能也可以使用:)
# =============================================================================
# NexT Theme configuration
# =============================================================================
# 多说帐号
duoshuo_shortname: your-duoshuo-shortname
# DISQUS 帐号 (如果已经设置 多说 帐号,此选项将被跳过)
disqus_shortname: your-disqus-shortname
# 社交链接,将在侧栏中显示
social:
GitHub: your-github-url
Twitter: your-twitter-url
Weibo: your-weibo-url
DouBan: your-douban-url
ZhiHu: your-zhihu-url
# 等等
# Creative Commons 4.0 International License.
# http://creativecommons.org/
# Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
creative_commons: by-nc-sa
# Google 站长工具验证,请选择 `HTML Meta` 验证方式
# See: https://www.google.com/webmasters/
google_site_verification: VvyjvVXcJQa0QklHipu6pwm2PJGnnchIqX7s5JbbT_0
# Google 分析 ID
google_analytics:
# 百度统计 ID,此 ID 是百度统计提供脚本中 hm.js? 后面那串字符,非百度统计帐号
baidu_analytics: 50c15455e37f70aea674ff4a663eef27
# 站点起始时间
since: 2011
# =============================================================================
# End NexT Theme configuration
# =============================================================================
# 菜单配置
menu:
home: /
archives: /archives
#categories: /categories
tags: /tags
#about: /about
# Favicon
# 从`Next 0.2`起,favicon将不再放置于主题之内。
# 请将你的favicon放置在`hexo-site/source/`目录下。
favicon: /favicon.ico
# 设置为`false`不显示`rss`链接
# 留空,并且通过`hexo-site-feed`插件配置使用默认的feed
# 设置成特定的`url`,适用于通过第三方服务定制feed的情况。
rss: false
# 图标字体
# NexT内建四种图标: default | linecons | fifty-shades | feather
icon_font: default
#icon_font: fifty-shades
#icon_font: feather
#icon_font: linecons
# 代码高亮主题
# available: normal | night | night eighties | night blue | night bright
highlight_theme: normal
# MathJax support
# 开启数学公式渲染支持,默认关闭。设置为 `true` 开启。
mathjax:
# Mist
#scheme: Mist
# `阅读全文` 按钮跳转之后是否自动滚动页面到设置 `<!-- more -->` 的地方。
scroll_to_more: true
# 是否为侧边栏文章的目录自动添加索引,默认开启。设置为 `false` 关闭。
toc_list_number: true
.blockquote-center
带上下分割线的引用,引用内文本将自动居中。适用于单行引用文本的场景。
<blockquote class="blockquote-center">blah blah blah</blockquote>
.full-image
图片将自动扩展 26%,突破文章宽度。
<img src="/image-url" class="full-image" />
接受各种形式的贡献,包括不限于提交问题与需求,修复代码。等待您的PR
。
NexT is built for easily use with elegant appearance.
First things first, always keep things simple.