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 | # Allow to cache content generation. |
移除非必要文件
1 | # Remove unnecessary files after hexo generate. |
选择scheme
1 | # --------------------------------------------------------------- |
边栏控制
边栏位置可以在左边,也可以在右边。
1 | sidebar: |
颜色
页眉面板颜色
选择深蓝色(默认值:”#222”)
1 | # Browser header panel color. |