hexo-filter-nofollow-with-goto
v2.0.2
Published
Fork from hexo-filter-nofollow. Add nofollow attribute to all external links, or convert all external links to internal links automatically.
Downloads
9
Maintainers
Readme
hexo-filter-nofollow-with-goto
Fork from hexo-filter-nofollow.
Add nofollow attribute to all external links, or convert all external links to internal links automatically.
hexo-filter-nofollow
add rel="noopener external nofollow noreferrer"
to all external links for security, privacy and SEO. Read more.
Installations
$ npm i hexo-filter-nofollow-with-goto --save
Options
nofollow:
enable: true
field: site
exclude:
- 'exclude1.com'
- 'exclude2.com'
goto:
- enable: false,
- prefix: '/goto/?u='
- 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 add nofollow attribute to external links in your post content
- 'site' - Add nofollow attribute to 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
.
- 'exclude1.com' does not apply to
- goto
- 'enable' - Convert all external links to internal links automatically. Default value is
false
. - 'prefix' - the internal link's prefix, default value is
'/goto/?u='
.
- 'enable' - Convert all external links to internal links automatically. Default value is