hexo-filter-links
v1.0.7
Published
Hexo Modify External link to Inner link
Downloads
90
Maintainers
Readme
hexo-filter-links
All external links to Internal links automatically.
一个修改外部链接为内部链接的Hexo插件。
hexo-filter-links
Modify links Looks like example.com/go/?ZXhhbXBsZS5jb20=
Installations
$ npm i hexo-filter-links --save
Options
links:
enable: true
field: 'site'
exclude:
- 'exclude1.com'
- 'exclude2.com'
- '*.exclude3.com' #need version >= 1.0.4
- enable - Enable the plugin. Default value is
true
. - field - The scope you want the plugin to proceed, can be 'site' or 'post'. Default value is
site
.- 'post' - Only Modify external links in your post content
- 'site' - Modify external links of whole sites
- exclude - Exclude hostname. Specify subdomain when applicable, including
www
.- 'exclude1.com' does not apply to
www.exclude1.com
noren.exclude1.com
. - '*.exclude2.com' does apply to
www.exclude2.com
noren.exclude2.com
. need version >= 1.0.4
- 'exclude1.com' does not apply to