banner
NEWS LETTER

hexo配置和更换主题

  • Home
  • hexo配置和更换主题
Scroll down

HEXO配置

可在根目录下的_config.yml文件中修改配置信息。

具体含义,可参考以下链接:

配置 | Hexo

更换主题

Async主题为例 , 进入链接。

在Readme部分将会有详细的配置教程。

按照步骤一步一步来就好了。

参考链接:https://hexo-theme-async.imalun.com/guide/

1. 安装需要的渲染器(不需要可不安装)

1
npm install --save hexo-renderer-less hexo-renderer-ejs

2. 安装主题

在博客根目录运行命令:

1
npm i hexo-theme-async@latest

3. 配置_config.yml

1
theme: async

4. 配置主题Config

在博客目录下创建_config.async.yml

写入主题配置

1
2
3
theme:
switch: true
default: style-light # style-light style-dark

5. 其他配置

主题配置 | Hexo-Theme-Async (imalun.com)
参考此链接一步一步配即可。

其他文章
目录导航 置顶
  1. 1. HEXO配置
  2. 2. 更换主题
    1. 2.1. 1. 安装需要的渲染器(不需要可不安装)
    2. 2.2. 2. 安装主题
    3. 2.3. 3. 配置_config.yml
    4. 2.4. 4. 配置主题Config
    5. 2.5. 5. 其他配置
请输入关键词进行搜索