Adds nofollow attribute to all external links in your hexo blog posts automatically.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
LICENSE
README.md
index.js
package.json

README.md

hexo-autonofollow

Adds nofollow attribute to all external links in your hexo blog posts automatically.

Features

  • Add rel="external nofollow" to all external links, SEO friendly.
  • Add target="_blank", Open external links in new window or tab

Install

$ npm install hexo-autonofollow --save

Options

You can configure this plugin in _config.yml.

nofollow:
	enable: true
	exclude:
    - exclude1.com
    - exclude2.com
  • enable - Enable the plugin. Defaults to false.
  • exclude - Exclude hostname