hexojs / hexo-filter-nofollow Goto Github PK
View Code? Open in Web Editor NEWAdd nofollow attribute to all external links automatically.
License: MIT License
Add nofollow attribute to all external links automatically.
License: MIT License
I wonder if it is feasible to exclude an url rather than a whole domain. For example, I would like to exclude my twitter profile but I don't want to exclude whole twitter profiles.
Maybe an option like exclude_url
could be implemented for this.
nofollow:
enable: true
field: site
exclude:
- 'exclude1.com'
- 'exclude2.com'
exclude_url:
- 'twitter.com/myprofile'
Thanks for sharing this great plugin with the community! 👑
By default it sets a "noreferrer" attribute but I would like to send the referrering site when opening external sites. Is there any chance to configure this option through the _config.yml
?
noopener
seems didn't work. i'am not sure.
hexo generate result:
<a target="_blank" href="http://hexo.io/" rel="external nofollow noreferrer">blank ahead</a>
<a href="http://hexo.io/" rel="external nofollow noreferrer" target="_blank">blank follow</a>
<a href="http://hexo.io/" rel="external nofollow noreferrer">no blank</a>
使用了此插件以后,在 _config.yml
里配置的超链接打开方式失效了:
external_link:
enable: true # Open external links in new tab
我的配置里开启了在新标签页里打开链接,但无效。
field: site,且设置域名白名单时,有些页面的外链依然不会添加 rel="external nofollow"
比如关于页上添加的外链,渲染时并不会添加。
而 hexo-autonofollow 插件 全站默认除了白名单域名的链接一律添加 rel="external nofollow" 。
有点强迫症的我,希望得到您的回复!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.