hexo-auto-association

1.0.0 • Public • Published

hexo-auto-association

hexo-auto-association是一款给将hexo生成的静态页做内部关联的工具,在会在after_post_render阶段,判断文章Front-matter下的指定内容(默认是association选项)进行关联。

演示展示

image-20230415151608032

配置信息

配置项 描述 默认值 选项
enable 是否启动 true Boolean: true | false
key Front-matter标签 "association" String
url 额外的url 追加 "/" String
priority 执行优先级 10 Number: 1-10
self 是否关联自己 false Boolean: true | false
mode 关键模式 "all" String: single | all
class_name class名称 "auto-association" String
is_clear_cache 清除缓存 true Boolean: true | false

默认的配置项内容如下:

auto_associations: 
  enable: true
  key: association
  url: /
  priority: 10
  self: false
  mode: all
  class_name: auto-association
  is_clear_cache: true

Package Sidebar

Install

npm i hexo-auto-association

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.67 kB

Total Files

5

Last publish

Collaborators

  • 7zmonkey