Skip to content

高级设置·主题结构

Lhcfl edited this page Jul 17, 2022 · 1 revision

本部分写给有能力修改本主题的朋友们。

hexo首先调用/scripts/index.js

index.js引用了以下内容:

  • /includes/tasks/welcome.js:负责展示一条欢迎信息
  • /includes/generators/insight.js:负责构建一个内置搜索框架,从icarus里面抄过来的。
  • /includes/tasks/tags.js:负责把tags页面注册到hexo的特殊页面里
  • /includes/helpers/site.js:负责向hexo注册一些特殊的函数,比如说字数统计。也是从icarus里面抄来的。

本主题采用的是pug。

Clone this wiki locally