description | Adds nofollow attribute to all external links in your hexo blog posts automatically. |
homepage URL | https://github.com/curbengh/hexo-nofollow |
repository URL | https://github.com/curbengh/hexo-nofollow.git |
owner | curben@users.noreply.repo.or.cz |
last change | Tue, 3 Sep 2019 11:53:21 +0000 (3 21:23 +0930) |
last refresh | Sat, 27 Apr 2024 09:39:31 +0000 (27 11:39 +0200) |
mirror URL | git://repo.or.cz/hexo-nofollow.git |
https://repo.or.cz/hexo-nofollow.git | |
ssh://git@repo.or.cz/hexo-nofollow.git | |
bundle info | hexo-nofollow.git downloadable bundles |
content tags |
This plugin has been deprecated. I'm now working on hexo-filter-nofollow.
If you prefer this plugin and doesn't want to see the deprecation warning,
package.json
- "hexo-nofollow": "^2.0.0"
+ "hexo-nofollow": "curbengh/hexo-nofollow"
Adds nofollow attribute to all external links in your hexo blog posts automatically.
This is an updated version of hexo-autonofollow. All the options are the same, so you can use this as a drop-in replacement.
rel="external nofollow noopener noreferrer"
to all external links for security, privacy and SEO. Read more.target="_blank"
, Open external links in new window or tab. This can be disabled, see below.Hexo doesn't insert target="_blank"
to all external links even if you set external_link: true
(default value) in the _config.yml.
This plugin make sure all external links are processed.
For example,
[example-link](https://example.com)
Becomes,
<a href="https://example.com" rel="external nofollow noopener noreferrer" target="_blank">example-link</a>
$ npm install hexo-nofollow --save
To enable this plugin, insert the following to _config.yml
:
nofollow:
enable: true
To exclude certain links, see below.
nofollow:
enable: true
exclude:
- 'exclude1.com'
- 'exclude2.com'
external_link: true
false
.www
'exclude1.com'
does not apply to www.exclude1.com
nor en.exclude1.com
.target="_blank"
. Defaults to true
. Recommend to set it to false.Note: external_link setting is already in the default _config.yml
.
All credits go to the following work:
target="_blank"
behaviour is noticed through this commit4 years ago | v2.0.0 | commitlog | ||
4 years ago | v2.0.0-alpha.3 | commitlog | ||
4 years ago | v1.0.11 | commitlog | ||
4 years ago | v2.0.0-alpha.2 | commitlog | ||
4 years ago | v1.0.10 | commitlog | ||
4 years ago | v2.0.0-alpha.1 | commitlog | ||
4 years ago | v1.0.9 | commitlog | ||
4 years ago | v1.0.8 | commitlog | ||
4 years ago | v1.0.7 | commitlog | ||
5 years ago | v1.0.6 | commitlog | ||
5 years ago | v1.0.5 | commitlog | ||
5 years ago | v1.0.4 | commitlog | ||
5 years ago | v1.0.3 | commitlog | ||
5 years ago | v1.0.2 | commitlog | ||
5 years ago | v1.0.1 | commitlog | ||
5 years ago | v1.0.0 | commitlog | ||
... |
4 years ago | master | logtree |
4 years ago | sukkaw | logtree |
4 years ago | ignore-target | logtree |
4 years ago | docs | logtree |
4 years ago | gitignore | logtree |
4 years ago | readme | logtree |
4 years ago | v2.0 | logtree |
4 years ago | cheerio-test | logtree |
4 years ago | decode-test | logtree |
5 years ago | upstream | logtree |