Skip to content

Add nofollow attribute to all external links automatically.

License

Notifications You must be signed in to change notification settings

hexojs/hexo-filter-nofollow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

48b01f6 · Sep 19, 2024

History

33 Commits
Jul 28, 2023
Jul 24, 2020
Jul 24, 2020
Aug 30, 2019
Aug 28, 2019
Aug 28, 2019
Jul 28, 2023
Aug 28, 2019
Aug 28, 2019
Jul 28, 2023
Sep 15, 2019
Sep 19, 2024

Repository files navigation

hexo-filter-nofollow

npm version npm license build status npm download

Add nofollow attribute to all external 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 --save

Options

nofollow:
  enable: true
  field: site
  exclude:
    - 'exclude1.com'
    - 'exclude2.com'
  • 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 nor en.exclude1.com.

About

Add nofollow attribute to all external links automatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published