demo预览图

前提

本主题为 Hexo 主题,请确保您对 Hexo 已有基本了解 。详请参见 Hexo 官网

开始前,请确保您的 Hexo 初始化工作已经准备完成,请参考 Hexo 安装。本主题依赖于 Node 14.x 以上版本,请注意您本地 Node 环境。

主题安装

进入您的 Hexo 博客根目录,执行如下命令,安装主题:

bash

npm i hexo-theme-async@latest

bash

yarn add hexo-theme-async@latest

如果您没有 ejsless 的渲染器,请先安装:hexo-renderer-ejshexo-renderer-less

bash

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

bash

yarn add -D hexo-renderer-less hexo-renderer-ejs

启用主题

修改 Hexo 博客配置文件 _config.yml,到此运行起来就 Hexo-Theme-Async 主题就生效啦。

yaml

# 将主题设置为 hexo-theme-async
theme: async

关于主题配置修改,可以参考 hexo-theme-async 文档

演示视频

安装示例视频,更多视频前往这里