-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Feature Request: rel="noopener/noreferrer/nofollow" option on external links #695
Comments
Good idea! I've linked to it from #681, I'll leave this open for now but ideally it will be built in the same PR as 681 |
Does the "external_links_no_follow" variable apply to external URL's specified within the frontmatter redirect_to variable? I am using the redirect_to functionality to create "pretty" outbound links similar to website.com/out/amazon which would redirect to amazon.com/[affiliate code]. As you can imagine, it would be best to have these set to nofollow. |
No it doesn't because we are using HTML redirects for that |
Feature Request
This feature request is similar to #681. In Hugo, we can configure the markdown parser (blackfriday) to include
rel
attributes likenofollow
andnoreferrer
in order to inform crawlers or prevent leaking referrer information. It has also been shown thatrel="noopener"
can be useful in preventing websites from manipulating thewindow
object of a document.It would be great to be able to include flags to enable or disable the inclusion of these
rel
attributes for markdown links, similar to how #681 seeks to enable or disable includingtarget="_blank"
with these markdown links.I'd also point out that Hugo currently does not support
rel="noopener"
(it is supported by blackfriday v2, but hugo is still using blackfriday v1), so adding this support would be a nice advantage for zola.The text was updated successfully, but these errors were encountered: