Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Option to specify rel="nofollow" in links #260

Open
hdodov opened this issue Sep 11, 2020 · 0 comments
Open

Option to specify rel="nofollow" in links #260

hdodov opened this issue Sep 11, 2020 · 0 comments

Comments

@hdodov
Copy link

hdodov commented Sep 11, 2020

This was briefly mentioned in #92 here, but I decided to open a separate issue.

We need to put rel="nofollow" on all external links in our articles for better SEO. Currently, Kirby only adds rel="noopener noreferrer".

What's worse is that even if I add nofollow manually in the TXT file, it gets removed when I save the article later in the panel.


Currently, I add nofollow with a custom paragraph.php snippet:

<p><?= str_replace('noopener noreferrer', 'noopener noreferrer nofollow', $content) ?></p>

...but it would be nice to be able to select whether you want nofollow or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant