-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hostname white list to skip adding rel attributes #45
Comments
Thanks, @kenchan0130 :) I understand the issue and I'm more than happy to add it on. Have you got a PR for this or you have not started working on it yet? |
@keithmifsud I haven't started work yet. |
Okies, I'm happy to help you with this feature if you get stuck. It is quite straight forward to implement. However, usage wise, you will need to be careful. In your example, you listed github.com (I know it is just an example), your site will probably have external links to GH. Some f which will to repos you manage and some to repos others manage. This can harm your site's SEO. |
@keithmifsud
|
Hi @kenchan0130 , Currently, you can still add target-blank:
rel: nofollow However, as you stated, it is not configurable, at least yet 😄 I mean you cannot select which links to add the nofollow to. Just all external links or all links with the predefined CSS class. |
We may do the following: target-blank:
noopener:
allow: ["regexp string or pure string"]
ignore: ["regexp string or pure string"]
noreferrer:
allow: ["regexp string or pure string"]
ignore: ["regexp string or pure string"]
nofollow:
allow: ["regexp string or pure string"]
ignore: ["regexp string or pure string"] In other words, I propose a method like In addition, |
I like the idea but I think that the Please ensure existing functionality remain intact as this library is used by more 10K installs and we should respect no BC. |
I would love to have this too! |
If you adopt my proposal, I don't know what to do with |
Hi @kenchan0130 is this message meant for me or for @jmankoff ? |
Hi @keithmifsud, this message is mainly for you. |
Thanks @kenchan0130 :) I don't think I understand the question? You can already set the rel attribute as a separate setting if one wishes to customise its behaviour. |
The jekyll-target-blank's definition of an "external" site is non-customizable, and it doesn't seem like the upstream maintainers are interested in fixing this. keithmifsud/jekyll-target-blank#45
The jekyll-target-blank's definition of an "external" site is non-customizable, and it doesn't seem like the upstream maintainers are interested in fixing this. keithmifsud/jekyll-target-blank#45
) The jekyll-target-blank's definition of an "external" site is non-customizable, and it doesn't seem like the upstream maintainers are interested in fixing this. keithmifsud/jekyll-target-blank#45
This issue was moved from kenchan0130#10.
The behavior I'm seeking is:
Use case:
I'm going to be adding a site where 95% of the links are external and 5% of the links are trusted so I don't want to set nofollow.
Potential API for usage:
Example link output:
The text was updated successfully, but these errors were encountered: