Hexo 主题使用进阶

新博客文章地址

更换为next主题

进入hexo站点文件夹

cd your-hexo-site

clone Next代码并存放到 themes/next 目录下

git clone https://github.com/iissnan/hexo-theme-next themes/next

在站点 _config.yml 中修改:

theme: next

Next 主题拥有”题中题”,可以在主题的 _config.yml 中设置:

scheme: Mist  # 开启Next.Mist主题

设置头像

在站点 _config.yml 中添加

avatar: http://....  # 头像的URL

添加分类

新建一个页面,命名为 categories

hexo new page categories

source/categories 目录的 index.md 中修改:

title: 分类
date: 2015-12-02 12:44:45
type: "categories"
---

在主题的 _config.yml 中取消注释:

categories: /categories

在要分类的文章中加入 category 属性:

category: "hexo"  # 分类为 hexo 

添加标签

新建一个页面,命名为 tags

hexo new page tags

source/tags 目录的 index.md 中修改:

title: tags
date: 2015-12-02 12:10:34
type: "tags"
---

在主题的 _config.yml 中取消注释:

tags: /tags

在需要变迁的文章中加入 tgs 属性:

tags: [spark,sparkSQL]  # 添加spark和sparkSQL两个标签

添加评论

在 [多说](“http://duoshuo.com“) 创建一个站点,创建时填写的多说域名就是你的 duoshuo_shortname

在站点 _config.yml 中设置:

duoshuo_shortname: your_duoshuo_shortname

更多功能

参考 [next官方帮助文档](“http://theme-next.iissnan.com“)

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值