NexT主题安装及配置

安装

方法一、

1
npm install hexo-theme-next

方法二、

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

复制配置文件

复制主题配置文件到站点根目录,命名为:_config.主题名称.yml

安装方法一、

1
cp node_modules/_config.yml _config.next.yml

安装方法二、

1
cp themes/next/_config.yml _config.next.yml

配置站点

设置缓存

1
2
3
# Allow to cache content generation.
cache:
enable: true

移除非必要文件

1
2
# Remove unnecessary files after hexo generate.
minify: true

选择scheme

1
2
3
4
5
6
7
8
9
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

Muse Scheme

边栏控制

边栏位置可以在左边,也可以在右边。

1
2
3
4
sidebar:
# Sidebar Position.
# position: left
position: right

颜色

页眉面板颜色

选择深蓝色(默认值:”#222”)

1
2
3
4
# Browser header panel color.
theme_color:
light: "#226"
dark: "#226"