hexo 主题的安装(next)(5.1.*)

next主题安装文档

  • 1、克隆(要在博客的根目录下):
    1
    $ git clone https://github.com/iissnan/hexo-theme-next themes/next

  • 2、更改_config.yml文件 theme: next

  • 3、主题设定
    在主题的_config.yml中,更改Scheme

  • 4、设置语言
    在默认_config.yml中修改language: zh-Hans

  • 5、设置菜单
    1
    2
    3
    4
    5
    6
    menu:
    home: /|| home
    #about: /about/ || user
    #tags: /tags/ || tags
    #categories: /categories/ || th
    archives: /archives/|| archive
    注意:是archives: /archives/|| archive而不是archives: /archives/ || archive/archives/后面不能有空格

  • 6、侧栏设置
    1
    2
    sidebar:
    display: post

  • 7、设置头像
    1
    avatar: /images/hexo.jpg
    hexo.jpg放在所选主题(next)的source/images

  • 8、作者昵称和站点描述都在默认_config.yml

  • 9、隐藏主页的内容,即提供more按钮
    1
    2
    auto_excerpt:
    enable: false

没了:)